More fixes for updating from older revisions
[mailer.git] / inc / filter-functions.php
index 509196238260f3ab56da0b569a75353a2e973488..280afbbfc984136aa33bbaa40ed7aa192e8d0e4c 100644 (file)
@@ -242,7 +242,6 @@ function runFilterChain ($filterName, $data = null) {
                        // Log it away...
                        logDebugMessage(__FUNCTION__, __LINE__, 'Filter chain ' . $filterName . ' not found!');
                } // END - if
-               if ($filterName == 'sql_admin_extra_data') debug_report_bug(print_r($GLOBALS['cache_array']['filter'] , true));
 
                // Abort here and return content
                return $data;
@@ -297,6 +296,12 @@ function countFilterUsage ($filterName, $filterFunction) {
 
 // Prepares the filter array for usage
 function prepareFilterArray () {
+       // Abort here if array is absend (e.g. not cached)
+       if (!isset($GLOBALS['cache_array']['filter']['filter_name'])) {
+               // Abort silently
+               return false;
+       } // END - if
+
        // Init dummy array
        $filterArray = array(
                'chains'  => array(),