From a7f4311e91040e6510df5b559b6daa008497ab10 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Thu, 3 Dec 2020 16:00:15 +0100 Subject: Use PHP 8 compatible way of detecting @ operator (does not set error_reporting to 0 any longer) --- it.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it.class') diff --git a/it.class b/it.class index 200829c..2ef86bd 100644 --- a/it.class +++ b/it.class @@ -168,7 +168,7 @@ static function error($p = array(), $extra = null) if ($level["class"] . $level["type"] . $level["function"] == "it::error") return null; # prevent recursion - if (!error_reporting() || $p[0] === false || $p['title'] === false) # called with @ or suppressed + if (error_reporting() == @error_reporting() || $p[0] === false || $p['title'] === false) # called with @ or suppressed return $p['fatal'] ? self::_exit($p) : null; if ($_SERVER['REMOTE_ADDR']) -- cgit v1.2.3