From: quix0r Date: Sat, 26 Jun 2010 16:41:12 +0000 (+0000) Subject: Possible fix for 'ob_end_clean: failed to delete buffer. No buffer to delete.' X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5687f8795df34174af141363693c06f94a8f93b1;p=mailer.git Possible fix for 'ob_end_clean: failed to delete buffer. No buffer to delete.' --- 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