Skip to content

Commit

Permalink
Setting the core fatal error handler if it is not configured.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbasso committed Apr 14, 2012
1 parent 05cdae6 commit a56f7b8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Cake/Core/App.php
Expand Up @@ -914,6 +914,9 @@ protected static function _checkFatalError() {
}

$fatalErrorHandler = Configure::read('Error.fatalErrorHandler');
if ($fatalErrorHandler === null) {
$fatalErrorHandler = 'ErrorHandler::handleFatalError';
}
if (!is_callable($fatalErrorHandler)) {
return;
}
Expand Down

0 comments on commit a56f7b8

Please sign in to comment.