diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index edbfc09ffd..4b9c643a47 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -4631,7 +4631,7 @@ function exit_handler() } // As a pre-caution... some setups display a blank page if the flush() is not there. - (empty($config['gzip_compress'])) ? @flush() : @ob_flush(); + (ob_get_level() > 0) ? @ob_flush() : @flush(); exit; }