summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorChristian Schneider2020-12-03 16:00:15 +0100
committerChristian Schneider2020-12-03 16:00:15 +0100
commita7f4311e91040e6510df5b559b6daa008497ab10 (patch)
tree4d9830790fe8f0b2bfe71865bbb4e4842da9813d /it.class
parentbd653f3a1b385892186cb9fca491ee9ec5e9bbed (diff)
downloaditools-a7f4311e91040e6510df5b559b6daa008497ab10.tar.gz
itools-a7f4311e91040e6510df5b559b6daa008497ab10.tar.bz2
itools-a7f4311e91040e6510df5b559b6daa008497ab10.zip
Use PHP 8 compatible way of detecting @ operator (does not set error_reporting to 0 any longer)
Diffstat (limited to 'it.class')
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
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'])