diff --git a/framework/router.class.php b/framework/router.class.php index 4c904555c8..d2e139d951 100755 --- a/framework/router.class.php +++ b/framework/router.class.php @@ -1548,6 +1548,7 @@ class router if(!empty($this->config->debug)) $this->saveSQL(); /* If any error occers, save it. */ + if(!function_exists('error_get_last')) return; $error = error_get_last(); if($error) $this->saveError($error['type'], $error['message'], $error['file'], $error['line']); }