summaryrefslogtreecommitdiffstats
path: root/application/libraries/ExceptionHandler.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/libraries/ExceptionHandler.php')
-rw-r--r--application/libraries/ExceptionHandler.php2
1 files changed, 1 insertions, 1 deletions
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"]));
}