diff options
author | Christian Schneider | 2007-10-12 13:52:51 +0000 |
---|---|---|
committer | Christian Schneider | 2007-10-12 13:52:51 +0000 |
commit | 1156a3456165f5b380cf58d3afcda29779602cf3 (patch) | |
tree | 89c0a54b758261b62e1f65c02eb64e89c144a1ad /it.class | |
parent | 909d7599edc95419dac9641f0df28c13f97266bb (diff) | |
download | itools-1156a3456165f5b380cf58d3afcda29779602cf3.tar.gz itools-1156a3456165f5b380cf58d3afcda29779602cf3.tar.bz2 itools-1156a3456165f5b380cf58d3afcda29779602cf3.zip |
Do not use STDOUT in web environment
Diffstat (limited to 'it.class')
-rw-r--r-- | it.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"); |