diff options
Diffstat (limited to 'it.class')
-rw-r--r-- | it.class | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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; |