Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
preventing error on trying to delete unexiting buffer
  • Loading branch information
igorpadovan committed May 26, 2015
1 parent 15f8853 commit bf550d1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/Cake/Network/CakeResponse.php
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit bf550d1

Please sign in to comment.