diff --git a/api/src/loader/exception.php b/api/src/loader/exception.php index 1f353503f3..44ae0e98fb 100755 --- a/api/src/loader/exception.php +++ b/api/src/loader/exception.php @@ -177,7 +177,7 @@ function egw_error_handler ($errno, $errstr, $errfile, $errline) case E_USER_WARNING: // skip message for warnings supressed via @-error-control-operator (eg. @is_dir($path)) // can be commented out to get suppressed warnings too! - if (error_reporting() && + if ((error_reporting() & $errno) && // silence "Declaration of $class::$method should be compatible with $parent::$method" warning !(substr($errstr, 0, 15) === 'Declaration of ' && strpos($errstr, ' should be compatible with ') !== false))