mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +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
|
* @return bool
|
||||||
*/
|
*/
|
||||||
protected function _clearBuffer() {
|
protected function _clearBuffer() {
|
||||||
//@codingStandardsIgnoreStart
|
if (ob_get_length()) {
|
||||||
return @ob_end_clean();
|
return ob_end_clean();
|
||||||
//@codingStandardsIgnoreEnd
|
}
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue