Skip to content
Permalink
Browse files

check ob_get_level() before ob_flush()

  • Loading branch information...
sadapon2008 committed Nov 26, 2014
1 parent 5a9bef2 commit 1f4402cd4c448571af68b9b694729f29f9ba45f0
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/Cake/Network/CakeResponse.php
@@ -1507,7 +1507,9 @@ protected function _clearBuffer() {
protected function _flushBuffer() {
//@codingStandardsIgnoreStart
@flush();
@ob_flush();
if (ob_get_level()) {
@ob_flush();
}
//@codingStandardsIgnoreEnd
}

0 comments on commit 1f4402c

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.