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:
parent
dbb4e74c79
commit
a6e18e0b6d
|
@ -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…
Reference in New Issue