diff options
-rw-r--r-- | auto_prepend.php | 1 | ||||
-rw-r--r-- | it.class | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/auto_prepend.php b/auto_prepend.php index f1ecba2..08ed7b1 100644 --- a/auto_prepend.php +++ b/auto_prepend.php @@ -53,6 +53,7 @@ function ED() $args = func_get_args(); if (ob_get_level() == 0 && $_SERVER['REMOTE_ADDR']) ob_start(); # prevent later 'headers already sent' error + $GLOBALS['debug_noredir'] = 1; echo it_debug::dump($args); return $args[0]; } @@ -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']) |