mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
check ob_get_level() before ob_flush()
This commit is contained in:
parent
5a9bef2cba
commit
1f4402cd4c
1 changed files with 3 additions and 1 deletions
|
@ -1507,7 +1507,9 @@ class CakeResponse {
|
|||
protected function _flushBuffer() {
|
||||
//@codingStandardsIgnoreStart
|
||||
@flush();
|
||||
@ob_flush();
|
||||
if (ob_get_level()) {
|
||||
@ob_flush();
|
||||
}
|
||||
//@codingStandardsIgnoreEnd
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue