]> git.mxchange.org Git - mailer.git/commitdiff
Sanity-check added because of debug mail reported missing array element 'module'
authorRoland Häder <roland@mxchange.org>
Sat, 20 Mar 2010 22:51:06 +0000 (22:51 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 20 Mar 2010 22:51:06 +0000 (22:51 +0000)
inc/loader/load_cache-modules.php

index c0caef79c51e80de0023bef69ed49722930d5d29..4875790656a818ecccab8dba563d46125b53159b 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('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) {