summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/log.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/log.php b/lib/log.php
index 4bba62cf4b2..3fc1e3976a1 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);
}