aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2011-05-23 10:14:40 +0200
committerAndreas Fischer <bantu@phpbb.com>2011-05-23 10:14:40 +0200
commit00a4ace57327483c1cf06acc8891aa42b205ccc7 (patch)
treedf7dedca08817b678fcd2bda81ec310e8e2eb7bb
parent5e81b058cf703e28fff6686cc6f8d9770b740a37 (diff)
parent9b62500a1068fd9c17409e435b53a33bb1cf6838 (diff)
downloadforums-00a4ace57327483c1cf06acc8891aa42b205ccc7.tar
forums-00a4ace57327483c1cf06acc8891aa42b205ccc7.tar.gz
forums-00a4ace57327483c1cf06acc8891aa42b205ccc7.tar.bz2
forums-00a4ace57327483c1cf06acc8891aa42b205ccc7.tar.xz
forums-00a4ace57327483c1cf06acc8891aa42b205ccc7.zip
Merge remote-tracking branch 'p/ticket/10188' into develop-olympus
* p/ticket/10188: [ticket/10188] Use ob_get_level in msg_handler for output buffering check.
-rw-r--r--phpBB/includes/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index ceaf426850..9f1d39118a 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -3743,7 +3743,7 @@ function msg_handler($errno, $msg_text, $errfile, $errline)
if (strpos($errfile, 'cache') === false && strpos($errfile, 'template.') === false)
{
// flush the content, else we get a white page if output buffering is on
- if ((int) @ini_get('output_buffering') === 1 || strtolower(@ini_get('output_buffering')) === 'on')
+ if (ob_get_level() > 0)
{
@ob_flush();
}