projects
/
mailer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79de7fa
)
Sanity-check added because of debug mail reported missing array element 'module'
author
Roland Häder
<roland@mxchange.org>
Sat, 20 Mar 2010 22:51:06 +0000
(22:51 +0000)
committer
Roland Häder
<roland@mxchange.org>
Sat, 20 Mar 2010 22:51:06 +0000
(22:51 +0000)
inc/loader/load_cache-modules.php
patch
|
blob
|
history
diff --git
a/inc/loader/load_cache-modules.php
b/inc/loader/load_cache-modules.php
index c0caef79c51e80de0023bef69ed49722930d5d29..4875790656a818ecccab8dba563d46125b53159b 100644
(file)
--- 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=<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) {