avoid sending headers twice

This commit is contained in:
Alexander M. Turek
2004-01-23 15:52:15 +00:00
parent 2915b5c3ce
commit fe55e940f4

View File

@@ -2,6 +2,8 @@
/* $Id$ */
// vim: expandtab sw=4 ts=4 sts=4:
if (empty($GLOBALS['is_header_sent'])) {
/**
* Gets a core script and starts output buffering work
*/
@@ -151,5 +153,6 @@ echo "\n";
* Sets a variable to remember headers have been sent
*/
$GLOBALS['is_header_sent'] = TRUE;
}
?>