check ob_get_level() before ob_flush()

This commit is contained in:
Tsuyoshi Sadakata 2014-11-26 17:25:10 +09:00
parent 5a9bef2cba
commit 1f4402cd4c

View file

@ -1507,7 +1507,9 @@ class CakeResponse {
protected function _flushBuffer() {
//@codingStandardsIgnoreStart
@flush();
@ob_flush();
if (ob_get_level()) {
@ob_flush();
}
//@codingStandardsIgnoreEnd
}