Merge branch '114-ignore-shutdown-warning' into 'master'

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

See merge request !54
This commit is contained in:
Abel Hoogeveen 2017-04-05 22:49:27 +02:00
commit 775c410db3
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');
}
}
}