From 5687f8795df34174af141363693c06f94a8f93b1 Mon Sep 17 00:00:00 2001 From: quix0r Date: Sat, 26 Jun 2010 16:41:12 +0000 Subject: [PATCH] Possible fix for 'ob_end_clean: failed to delete buffer. No buffer to delete.' --- inc/wrapper-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/wrapper-functions.php b/inc/wrapper-functions.php index ff399cbf86..a6f08285da 100644 --- a/inc/wrapper-functions.php +++ b/inc/wrapper-functions.php @@ -117,7 +117,7 @@ function writeToFile ($FQFN, $content, $aquireLock = false) { // Clears the output buffer. This function does *NOT* backup sent content. function clearOutputBuffer () { // Trigger an error on failure - if (!ob_end_clean()) { + if ((ob_get_length() > 0) && (!ob_end_clean())) { // Failed! debug_report_bug(__FUNCTION__.': Failed to clean output buffer.'); } // END - if -- 2.39.5