summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2015-10-14 14:35:00 +0200
committerUrban Müller2015-10-14 14:35:00 +0200
commit63b9d95ee4bce9188db0881159d163e35e2a19a4 (patch)
tree1e51e911f0ef3b722260e776e52ed34987e35bc6
parent5efecd703cebc19ed1fb08725f243920e57271a0 (diff)
downloaditools-63b9d95ee4bce9188db0881159d163e35e2a19a4.tar.gz
itools-63b9d95ee4bce9188db0881159d163e35e2a19a4.tar.bz2
itools-63b9d95ee4bce9188db0881159d163e35e2a19a4.zip
do not send mails if it::error was called in a function from e.g. @foo()
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it.class b/it.class
index 9f9749e..1b891f8 100644
--- a/it.class
+++ b/it.class
@@ -169,7 +169,7 @@ static function error($p = array())
if ($toscreen && !it::is_live())
$GLOBALS['debug_noredir'] = 1;
- if (!$toscreen) # this error can only be sent by mail: find out if we want to suppress it
+ 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 (!$p['id'])
$sendmail = true;