Permalink
Browse files

Fixing issue where CakeLog would log suppressed errors even when erro…

…r reporting was disabled. Fixes #1403
  • Loading branch information...
1 parent 04929ae commit 56415f20cb95f3b68b434aa21e610eec0e75405e @markstory markstory committed Dec 26, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 cake/libs/cake_log.php
@@ -253,7 +253,7 @@ function write($type, $message) {
* @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) {

0 comments on commit 56415f2

Please sign in to comment.