diff options
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | application/libraries/ExceptionHandler.php | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -1,6 +1,7 @@ This file lists major, incompatible or otherwise important changes, you should look at it after every update. NEXT + - PHP 7.4 compatibility fixes 3.4.2 2019-12-06 - PHP 7.4 compatibility fixes diff --git a/application/libraries/ExceptionHandler.php b/application/libraries/ExceptionHandler.php index 94a1d35c0..75cbb5c66 100644 --- a/application/libraries/ExceptionHandler.php +++ b/application/libraries/ExceptionHandler.php @@ -139,7 +139,7 @@ class ExceptionHandler { static public function check_for_fatal() { $error = error_get_last(); - if ($error["type"] == E_ERROR) { + if (isset($error) && $error["type"] == E_ERROR) { self::exception_handler(new \ErrorException( $error["message"], 0, $error["type"], $error["file"], $error["line"])); } |