diff --git a/cake/libs/cake_log.php b/cake/libs/cake_log.php index d84931587..1d92ad854 100644 --- a/cake/libs/cake_log.php +++ b/cake/libs/cake_log.php @@ -287,5 +287,6 @@ class CakeLog { } if (!defined('DISABLE_DEFAULT_ERROR_HANDLING')) { - set_error_handler(array('CakeLog', 'handleError')); + $cakeLog =& CakeLog::getInstance(); + set_error_handler(array($cakeLog, 'handleError')); }