diff --git a/core/src/Revolution/Error/modErrorHandler.php b/core/src/Revolution/Error/modErrorHandler.php index c388adca02f..368bd48645a 100644 --- a/core/src/Revolution/Error/modErrorHandler.php +++ b/core/src/Revolution/Error/modErrorHandler.php @@ -58,7 +58,7 @@ function __construct(modX &$modx, array $stack = []) */ public function handleError($errno, $errstr, $errfile = null, $errline = null, $errcontext = null) { - if (error_reporting() == 0) { + if (error_reporting() == 0 || !(error_reporting() & $errno)) { return false; }