Fixing issue where CakeLog would log suppressed errors even when error reporting was disabled. Fixes #1403

This commit is contained in:
mark_story 2010-12-26 13:02:43 -05:00
parent 04929ae1df
commit 56415f20cb

View file

@ -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) {