diff options
author | Urban Müller | 2015-10-14 14:35:00 +0200 |
---|---|---|
committer | Urban Müller | 2015-10-14 14:35:00 +0200 |
commit | 63b9d95ee4bce9188db0881159d163e35e2a19a4 (patch) | |
tree | 1e51e911f0ef3b722260e776e52ed34987e35bc6 | |
parent | 5efecd703cebc19ed1fb08725f243920e57271a0 (diff) | |
download | itools-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.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |