Skip to content

Commit

Permalink
Merge pull request #5261 from sadapon2008/2.x-response-ob_flush
Browse files Browse the repository at this point in the history
an unnecessary E_NOTICE caused by CakeResponse::download()
  • Loading branch information
markstory committed Nov 26, 2014
2 parents 5a9bef2 + 1f4402c commit ac02350
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Cake/Network/CakeResponse.php
Expand Up @@ -1507,7 +1507,9 @@ protected function _clearBuffer() {
protected function _flushBuffer() {
//@codingStandardsIgnoreStart
@flush();
@ob_flush();
if (ob_get_level()) {
@ob_flush();
}
//@codingStandardsIgnoreEnd
}

Expand Down

0 comments on commit ac02350

Please sign in to comment.