summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it.class5
1 files changed, 4 insertions, 1 deletions
diff --git a/it.class b/it.class
index bd380e5..97b018d 100644
--- a/it.class
+++ b/it.class
@@ -132,6 +132,9 @@ static function error($p = array())
{
$p = is_array($p) ? $p : array('title' => $p);
+ if (!error_reporting()) # called with @
+ return null;
+
if ($_SERVER['REMOTE_ADDR'])
$url = "http://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; # we ignore https for easier debugging
else
@@ -169,7 +172,7 @@ static function error($p = array())
if ($toscreen && !it::is_live())
$GLOBALS['debug_noredir'] = 1;
- if (error_reporting() && !$toscreen) # not called with @ and this error can only be sent by mail: find out if we want to suppress it
+ if (!$toscreen) # this error can only be sent by mail: find out if we want to suppress it
{
if (!$p['id'])
$sendmail = true;