Skip to content

Commit

Permalink
- ob_clean() is no longer called when no output buffers are running
Browse files Browse the repository at this point in the history
  • Loading branch information
liquidise committed Aug 5, 2011
1 parent 0f88eb5 commit a183b1e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion includes/qcodo/_core/framework/QApplicationBase.class.php
Expand Up @@ -684,7 +684,9 @@ public static function MakeDirectory($strPath, $intMode = null) {
*/
public static function Redirect($strLocation) {
// Clear the output buffer (if any)
ob_clean();
if( count(ob_list_handlers()) ) {
ob_clean();
}

if ((QApplication::$RequestMode == QRequestMode::Ajax) ||
(array_key_exists('Qform__FormCallType', $_POST) &&
Expand Down

0 comments on commit a183b1e

Please sign in to comment.