Skip to content
Snippets Groups Projects
Commit a6e18e0b authored by Michael Gapczynski's avatar Michael Gapczynski
Browse files

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

Check if error_report() is equal to 0, so suppressed errors aren't logged e.g. the htaccesstext.txt fopen failing
parent dbb4e74c
Branches
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment