From fbcdb4e1f8ae0591ad9165b2db18b3c354c29a5b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 5 Nov 2009 15:23:22 +0000 Subject: [PATCH] Final fix for non-working FILTER_LOAD_CONFIGURATION() --- inc/config-functions.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/inc/config-functions.php b/inc/config-functions.php index 881b7f63d8..694a53eb63 100644 --- a/inc/config-functions.php +++ b/inc/config-functions.php @@ -354,14 +354,13 @@ function updateConfiguration ($entries, $values, $updateMode='', $config = '0') // Filter for loading configuration function FILTER_LOAD_CONFIGURATION ($no = '0') { + // Is the value null, fix it :( + if (is_null($no)) $no = '0'; + // Check for cache extension, cache-array and if the requested configuration is in cache if ((isset($GLOBALS['cache_array']['config'][$no])) && (is_array($GLOBALS['cache_array']['config'][$no]))) { // Load config from cache - //* DEBUG: */ outputHtml(gettype($GLOBALS['cache_array']['config'][$no])."
"); mergeConfig($GLOBALS['cache_array']['config'][$no]); - //foreach ($GLOBALS['cache_array']['config'][$no] as $key => $value) { - // setConfigEntry($key, $value); - //} // END - foreach // Count cache hits if exists if ((isStatsEntrySet('cache_hits')) && (isExtensionActive('cache'))) { -- 2.39.5