Setting the core fatal error handler if it is not configured.

This commit is contained in:
Juan Basso 2012-03-31 20:24:49 -04:00
parent 05cdae6d1a
commit a56f7b84e3

View file

@ -914,6 +914,9 @@ class App {
}
$fatalErrorHandler = Configure::read('Error.fatalErrorHandler');
if ($fatalErrorHandler === null) {
$fatalErrorHandler = 'ErrorHandler::handleFatalError';
}
if (!is_callable($fatalErrorHandler)) {
return;
}