From a6e18e0b6d329b4dfe9b71c244c0a45ac073f8b8 Mon Sep 17 00:00:00 2001 From: Michael Gapczynski Date: Sun, 28 Oct 2012 19:38:48 -0400 Subject: [PATCH] Check if error_report() is equal to 0, so suppressed errors aren't logged e.g. the htaccesstext.txt fopen failing --- lib/log.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/log.php b/lib/log.php index 4bba62cf4b..3fc1e3976a 100644 --- a/lib/log.php +++ b/lib/log.php @@ -58,6 +58,9 @@ class OC_Log { //Recoverable errors handler public static function onError($number, $message, $file, $line){ + if (error_reporting() === 0) { + return; + } self::write('PHP', $message . ' at ' . $file . '#' . $line, self::WARN); }