Now we make sure 'filter_name' is there which prevents a notice and non-working code
authorRoland Häder <roland@mxchange.org>
Wed, 2 Sep 2009 23:38:22 +0000 (23:38 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 2 Sep 2009 23:38:22 +0000 (23:38 +0000)
inc/filters.php

index c93c44f..d532c23 100644 (file)
@@ -62,7 +62,7 @@ function initFilterSystem () {
        $GLOBALS['filters']['counter'] = array();
 
        // Load all saved filers if sql_patches is updated
-       if (isset($GLOBALS['cache_array']['filter'])) {
+       if (isset($GLOBALS['cache_array']['filter']['filter_name'])) {
                // Found in cache so rewrite the array
                $filterArray = array();
                foreach ($GLOBALS['cache_array']['filter']['filter_name'] as $idx => $filterName) {