diff options
author | Urban Müller | 2007-12-10 13:45:34 +0000 |
---|---|---|
committer | Urban Müller | 2007-12-10 13:45:34 +0000 |
commit | 82d030f3e020266f914799b034d9fbe2dd3f577f (patch) | |
tree | 593899789ab5372beb5dff041c42d8886d101f3a /auto_prepend.php | |
parent | d890ec0d9a4a5022289f19107e840be0a658d7b7 (diff) | |
download | itools-82d030f3e020266f914799b034d9fbe2dd3f577f.tar.gz itools-82d030f3e020266f914799b034d9fbe2dd3f577f.tar.bz2 itools-82d030f3e020266f914799b034d9fbe2dd3f577f.zip |
prevent headers already sent
Diffstat (limited to 'auto_prepend.php')
-rw-r--r-- | auto_prepend.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/auto_prepend.php b/auto_prepend.php index 7a66c36..8955371 100644 --- a/auto_prepend.php +++ b/auto_prepend.php @@ -51,6 +51,8 @@ function D() function ED() { $args = func_get_args(); + if (ob_get_level() == 0 && $_SERVER['REMOTE_ADDR']) + ob_start(); # prevent later 'headers already sent' error echo it_debug::dump($args); return $args[0]; } @@ -67,7 +69,7 @@ function EDC() if (($result = $GLOBALS["debug_$var"]) && $args) { - if (ob_get_level() == 0) + if (ob_get_level() == 0 && $_SERVER['REMOTE_ADDR']) ob_start(); # prevent later 'headers already sent' error echo it_debug::dump($args); } |