mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Merge pull request #5261 from sadapon2008/2.x-response-ob_flush
an unnecessary E_NOTICE caused by CakeResponse::download()
This commit is contained in:
commit
ac02350f41
1 changed files with 3 additions and 1 deletions
|
@ -1507,7 +1507,9 @@ class CakeResponse {
|
||||||
protected function _flushBuffer() {
|
protected function _flushBuffer() {
|
||||||
//@codingStandardsIgnoreStart
|
//@codingStandardsIgnoreStart
|
||||||
@flush();
|
@flush();
|
||||||
@ob_flush();
|
if (ob_get_level()) {
|
||||||
|
@ob_flush();
|
||||||
|
}
|
||||||
//@codingStandardsIgnoreEnd
|
//@codingStandardsIgnoreEnd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue