From dfa062451083811252d469dc5636870def73c5d2 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 21 Nov 2013 15:05:47 +0100 Subject: allow suppression of error mails --- it.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/it.class b/it.class index 7398fa3..bec2965 100644 --- a/it.class +++ b/it.class @@ -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()) -- cgit v1.2.3