diff options
author | Urban Müller | 2009-07-09 13:05:27 +0000 |
---|---|---|
committer | Urban Müller | 2009-07-09 13:05:27 +0000 |
commit | f34ad426209b0a4ed07892a061fa173a5e533d4f (patch) | |
tree | 9b54568337424d60aecab10d0ab236c17eee49bf /it.class | |
parent | e4336712684fedf2ef47281cafc6d57b8c3bc1a5 (diff) | |
download | itools-f34ad426209b0a4ed07892a061fa173a5e533d4f.tar.gz itools-f34ad426209b0a4ed07892a061fa173a5e533d4f.tar.bz2 itools-f34ad426209b0a4ed07892a061fa173a5e533d4f.zip |
dont redirect if debug output visible
Diffstat (limited to 'it.class')
-rw-r--r-- | it.class | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -151,6 +151,9 @@ function error($p = array(), $body = null, $to = null) # $body and $to deprecate @chmod("/tmp/alertdata", 0777); $toscreen = ini_get('display_errors') || (defined("STDOUT") && posix_isatty(STDOUT)) || EDC('astwin') || EDC('asdevel'); + 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 (!$p['id']) |