Skip to content

Commit 8f860f2

Browse files
committed
log file:failed to delete buffer. No buffer to delete.
1 parent c36d134 commit 8f860f2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

system/CodeIgniter.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,12 @@ protected function display404errors(PageNotFoundException $e)
871871
protected function gatherOutput($cacheConfig = null, $returned = null)
872872
{
873873
$this->output = ob_get_contents();
874-
ob_end_clean();
874+
// If buffering is not null.
875+
// Clean (erase) the output buffer and turn off output buffering
876+
if (ob_get_length())
877+
{
878+
ob_end_clean();
879+
}
875880

876881
// If the controller returned a response object,
877882
// we need to grab the body from it so it can

0 commit comments

Comments
 (0)