Update Logger.php to only show error 500 pages upon shutdown error.

This commit is contained in:
Abel Hoogeveen 2017-04-05 22:37:54 +02:00
parent 85b11b082d
commit f38e6e3c40
1 changed files with 6 additions and 1 deletions

View File

@ -168,9 +168,14 @@ class Logger {
$errstr = $error['message'];
// Log it!
$thisType = self::getType($errno);
Factory::getInstance()->output->set_output('');
self::errorHandler($errno, $errstr, $errfile, $errline);
self::http_error('500');
if ($thisType == 'ERROR')
{
self::http_error('500');
}
}
}