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

This commit is contained in:
Michael Gapczynski 2012-10-28 19:38:48 -04:00
parent dbb4e74c79
commit a6e18e0b6d
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}