From 155fb0bb5b015fe7cb3dbb3926f6f81daa1ddb96 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 21 Sep 2008 17:01:51 +0000 Subject: [PATCH] Fix for empty content --- inc/databases.php | 2 +- inc/functions.php | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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); -- 2.39.5