mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Merge pull request #6645 from igorpadovan/2.6
Preventing error when trying to delete unexisting buffer
This commit is contained in:
commit
0c9fea8523
1 changed files with 4 additions and 3 deletions
|
@ -1496,9 +1496,10 @@ class CakeResponse {
|
|||
* @return bool
|
||||
*/
|
||||
protected function _clearBuffer() {
|
||||
//@codingStandardsIgnoreStart
|
||||
return @ob_end_clean();
|
||||
//@codingStandardsIgnoreEnd
|
||||
if (ob_get_length()) {
|
||||
return ob_end_clean();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue