From: Roland Häder Date: Sun, 22 Nov 2009 20:00:33 +0000 (+0000) Subject: More fixes for redirect vs. regular output, thanks to wernisman X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9c233ac3be8ef85040fc580689bf2436c81522ec;p=mailer.git More fixes for redirect vs. regular output, thanks to wernisman --- diff --git a/inc/functions.php b/inc/functions.php index d6a9cb65eb..95d143c2a3 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -85,7 +85,7 @@ function outputHtml ($htmlCode, $newLine = true) { app_die(__FUNCTION__, __LINE__, '{--FATAL_ERROR--}: {--LANG_NO_RENDER_DIRECT--}'); break; } // END - switch - } elseif (getPhpCaching() == 'on') { + } elseif ((getPhpCaching() == 'on') && ((!isset($GLOBALS['header'])) || (count($GLOBALS['header']) == 0))) { // Output cached HTML code $GLOBALS['output'] = ob_get_contents(); @@ -121,6 +121,9 @@ function outputHtml ($htmlCode, $newLine = true) { // Output code here, DO NOT REMOVE! ;-) outputRawCode($GLOBALS['output']); + } else { + // And flush all headers + flushHeaders(); } }