summaryrefslogtreecommitdiff
path: root/auto_prepend.php
diff options
context:
space:
mode:
authorUrban Müller2007-12-10 13:29:24 +0000
committerUrban Müller2007-12-10 13:29:24 +0000
commitd890ec0d9a4a5022289f19107e840be0a658d7b7 (patch)
tree70800438ea9e5f45593e29cc1644a7d98d1e44cc /auto_prepend.php
parentf2f1f7a8c93c15b55c0fd87c767d09b32bb027b3 (diff)
downloaditools-d890ec0d9a4a5022289f19107e840be0a658d7b7.tar.gz
itools-d890ec0d9a4a5022289f19107e840be0a658d7b7.tar.bz2
itools-d890ec0d9a4a5022289f19107e840be0a658d7b7.zip
prevent headers already sent
Diffstat (limited to 'auto_prepend.php')
-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);