From: Roland Häder Date: Sun, 21 Sep 2008 17:01:51 +0000 (+0000) Subject: Fix for empty content X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=commitdiff_plain;h=155fb0bb5b015fe7cb3dbb3926f6f81daa1ddb96 Fix for empty content --- diff --git a/inc/databases.php b/inc/databases.php index 6793b0f1d3..a441f85285 100644 --- a/inc/databases.php +++ b/inc/databases.php @@ -113,7 +113,7 @@ define('USAGE_BASE', "usage"); define('SERVER_URL', "http://www.mxchange.org"); // This current patch level -define('CURR_SVN_REVISION', "381"); +define('CURR_SVN_REVISION', "382"); // Take a prime number which is long (if you know a longer one please try it out!) define('_PRIME', 591623); diff --git a/inc/functions.php b/inc/functions.php index 892f983c6b..c4a1171f00 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -884,8 +884,10 @@ function LOAD_URL($URL, $addUrlData=true) { // Get output buffer $OUTPUT = ob_get_contents(); - // Clear it - ob_end_clean(); + // Clear it only if there is content + if (!empty($OUTPUT)) { + ob_end_clean(); + } // END - if // Add some data to URL if cookies are not accepted if (((!defined('__COOKIES')) || (!__COOKIES)) && ($addUrlData)) $URL = ADD_URL_DATA($URL);