mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 15:27:42 +02:00
Merge remote-tracking branch 'p/ticket/10191' into develop-olympus
* p/ticket/10191: [ticket/10191] Use ob_get_level in exit_handler for output buffering check.
This commit is contained in:
@@ -4719,7 +4719,7 @@ function exit_handler()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// As a pre-caution... some setups display a blank page if the flush() is not there.
|
// 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;
|
exit;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user