From f34ad426209b0a4ed07892a061fa173a5e533d4f Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 9 Jul 2009 13:05:27 +0000 Subject: dont redirect if debug output visible --- it.class | 3 +++ 1 file changed, 3 insertions(+) (limited to 'it.class') diff --git a/it.class b/it.class index 667e76c..0945ab9 100644 --- a/it.class +++ b/it.class @@ -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']) -- cgit v1.2.3