Skip to content
Permalink
Browse files

preventing error on trying to delete unexiting buffer

  • Loading branch information...
igorpadovan committed May 26, 2015
1 parent 15f8853 commit bf550d13ceb785feb745dd143544d1c2e53521ea
Showing with 4 additions and 3 deletions.
  1. +4 −3 lib/Cake/Network/CakeResponse.php
@@ -1496,9 +1496,10 @@ protected function _isActive() {
* @return bool
*/
protected function _clearBuffer() {
//@codingStandardsIgnoreStart
return @ob_end_clean();
//@codingStandardsIgnoreEnd
if (ob_get_length()) {
return ob_end_clean();
}
return true;
}
/**

0 comments on commit bf550d1

Please sign in to comment.
You can’t perform that action at this time.