diff options
author | Urban Müller | 2013-11-21 15:05:47 +0100 |
---|---|---|
committer | Urban Müller | 2013-11-21 15:05:47 +0100 |
commit | dfa062451083811252d469dc5636870def73c5d2 (patch) | |
tree | 5b2ee2c2bcdb809ce364fe6d0c803a8aec460892 /it.class | |
parent | 28fbe9b522ba6af39b03f7f1acc8cc8bbef31d68 (diff) | |
download | itools-dfa062451083811252d469dc5636870def73c5d2.tar.gz itools-dfa062451083811252d469dc5636870def73c5d2.tar.bz2 itools-dfa062451083811252d469dc5636870def73c5d2.zip |
allow suppression of error mails
Diffstat (limited to 'it.class')
-rw-r--r-- | it.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -150,7 +150,7 @@ static function error($p = array(), $body = null, $to = null) # $body and $to de @mkdir("/tmp/alertdata"); @chmod("/tmp/alertdata", 0777); - $toscreen = ini_get('display_errors') || (defined("STDOUT") && posix_isatty(STDOUT)) || EDC('astwin') || EDC('asdevel'); + $toscreen = getenv('NOERRORMAILS') || ini_get('display_errors') || (defined("STDOUT") && posix_isatty(STDOUT)) || EDC('astwin') || EDC('asdevel'); @fseek(STDOUT, 0, SEEK_END); # Work around PHP bug 49819: posix_isatty seeks to start if ($toscreen && !it::is_live()) |