Commit 9ccb2bef authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Return FALSE in case of error_reporting of 0 to allow catching errors of fopen with error_get_last

parent 9e40fddb
......@@ -169,7 +169,7 @@ function gosaRaiseError($errno, $errstr, $errfile, $errline)
/* Return if error reporting is set to zero */
if (error_reporting() == 0) {
set_error_handler('gosaRaiseError', E_WARNING | E_NOTICE | E_USER_ERROR | E_USER_WARNING | E_USER_NOTICE | E_STRICT);
return;
return FALSE;
}
/* Workaround for buggy imap_open error outputs */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment