Check if error_report() is equal to 0, so suppressed errors aren't logged e.g. the htaccesstext.txt fopen failing

remotes/origin/stable5
Michael Gapczynski 13 years ago
parent dbb4e74c79
commit a6e18e0b6d
  1. 3
      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);
}

Loading…
Cancel
Save