summaryrefslogtreecommitdiffstats
path: root/lib/log.php
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-10-28 19:38:48 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-10-28 19:38:57 -0400
commita6e18e0b6d329b4dfe9b71c244c0a45ac073f8b8 (patch)
tree62b20c5b80e5b0bd24a0e198161195278a821c8f /lib/log.php
parentdbb4e74c79c9468ecda22c9b43778691a7936c2a (diff)
downloadnextcloud-server-a6e18e0b6d329b4dfe9b71c244c0a45ac073f8b8.tar.gz
nextcloud-server-a6e18e0b6d329b4dfe9b71c244c0a45ac073f8b8.zip
Check if error_report() is equal to 0, so suppressed errors aren't logged e.g. the htaccesstext.txt fopen failing
Diffstat (limited to 'lib/log.php')
-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);
}