From: Roland Häder Date: Sat, 20 Mar 2010 22:51:06 +0000 (+0000) Subject: Sanity-check added because of debug mail reported missing array element 'module' X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cd8e4943c1dac9c71b6a8fe56627f8ac61ec6297;p=mailer.git Sanity-check added because of debug mail reported missing array element 'module' --- diff --git a/inc/loader/load_cache-modules.php b/inc/loader/load_cache-modules.php index c0caef79c5..4875790656 100644 --- a/inc/loader/load_cache-modules.php +++ b/inc/loader/load_cache-modules.php @@ -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=
'.print_r($modArray, true).'
'); + } // 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) {