From 56415f20cb95f3b68b434aa21e610eec0e75405e Mon Sep 17 00:00:00 2001 From: mark_story Date: Sun, 26 Dec 2010 13:02:43 -0500 Subject: [PATCH] Fixing issue where CakeLog would log suppressed errors even when error reporting was disabled. Fixes #1403 --- cake/libs/cake_log.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cake/libs/cake_log.php b/cake/libs/cake_log.php index efac12bcf..d84931587 100644 --- a/cake/libs/cake_log.php +++ b/cake/libs/cake_log.php @@ -253,7 +253,7 @@ class CakeLog { * @return void */ function handleError($code, $description, $file = null, $line = null, $context = null) { - if ($code === 2048 || $code === 8192) { + if ($code === 2048 || $code === 8192 || error_reporting() === 0) { return; } switch ($code) {