Skip to content

Commit

Permalink
fix showing notice log
Browse files Browse the repository at this point in the history
  • Loading branch information
rahmanramsi committed Mar 12, 2024
1 parent 5ddec4e commit 9cb36b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OjtPlugin.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function fatalHandler()
{
$error = error_get_last();
// Fatal error, E_ERROR === 1
if (!in_array($error['type'], [E_COMPILE_ERROR, E_ERROR])) return;
if (array_key_exists('type', $error) && !in_array($error['type'], [E_COMPILE_ERROR, E_ERROR])) return;
if (!str_contains($error['file'], 'ojtPlugin')) {
return;
}
Expand Down

0 comments on commit 9cb36b4

Please sign in to comment.