diff --git a/cake/libs/configure.php b/cake/libs/configure.php index 82df61f048e..c886128305c 100644 --- a/cake/libs/configure.php +++ b/cake/libs/configure.php @@ -137,7 +137,7 @@ function write($config, $value = null) { $callback = array('CakeLog', 'getInstance'); } } - if (!empty($callback) && class_exists('Debugger')) { + if (!empty($callback) && !defined('DISABLE_DEFAULT_ERROR_HANDLING') && class_exists('Debugger')) { Debugger::invoke(call_user_func($callback)); } error_reporting($reporting);