summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--auto_prepend.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/auto_prepend.php b/auto_prepend.php
index 6109726..7a66c36 100644
--- a/auto_prepend.php
+++ b/auto_prepend.php
@@ -66,7 +66,11 @@ function EDC()
$GLOBALS['ULTRADEBUGVARS'][$var] = 1;
if (($result = $GLOBALS["debug_$var"]) && $args)
+ {
+ if (ob_get_level() == 0)
+ ob_start(); # prevent later 'headers already sent' error
echo it_debug::dump($args);
+ }
if (!$result || $result === true) # Compatibility with old map relying on 0|1
$result = intval($result);