From 1156a3456165f5b380cf58d3afcda29779602cf3 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Fri, 12 Oct 2007 13:52:51 +0000 Subject: Do not use STDOUT in web environment --- it.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/it.class b/it.class index 9d90772..07398f3 100644 --- a/it.class +++ b/it.class @@ -150,7 +150,7 @@ function error($p = array(), $body = null, $to = null) # $body and $to deprecate 'blockmail' => 3600, ); - $toscreen = ini_get('display_errors') || posix_isatty(STDOUT) || EDC('astwin') || EDC('asdevel'); + $toscreen = ini_get('display_errors') || (defined("STDOUT") && posix_isatty(STDOUT)) || EDC('astwin') || EDC('asdevel'); if (!$toscreen) # this error can only be sent by mail: find out if we want to suppress it { @mkdir("/tmp/alertdata"); -- cgit v1.2.3