]> git.mxchange.org Git - mailer.git/blobdiff - inc/loader/load_cache-modules.php
Rewritten to make use of EL
[mailer.git] / inc / loader / load_cache-modules.php
index c0caef79c51e80de0023bef69ed49722930d5d29..be0d09f63090ae18b92944d31600789e1818f04f 100644 (file)
@@ -52,6 +52,14 @@ if (($GLOBALS['cache_instance']->loadCacheFile('modules')) && ($GLOBALS['cache_i
 
        // Rewrite module cache
        $modArray = $GLOBALS['cache_array']['modules'];
+
+       // Do only process valid arrays
+       if (!isset($modArray['module'])) {
+               // We should fix this!
+               debug_report_bug(__FILE__, __LINE__, 'modArray=<pre>'.print_r($modArray, true).'</pre>');
+       } // END - if
+
+       // Rewrite some parts
        foreach ($modArray['module'] as $key => $mod) {
                // Add all
                foreach (array('id','title','locked','hidden','admin_only','mem_only','has_menu') as $entry) {