From: Roland Häder Date: Thu, 5 Nov 2009 15:23:22 +0000 (+0000) Subject: Final fix for non-working FILTER_LOAD_CONFIGURATION() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fbcdb4e1f8ae0591ad9165b2db18b3c354c29a5b;p=mailer.git Final fix for non-working FILTER_LOAD_CONFIGURATION() --- 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'))) {