$cacheInstance->cache_destroy();
unset($cacheArray['admins']);
}
-} elseif (($_CONFIG['cache_admins'] == 'Y') && ($CSS != "1") && ($CSS != "-1")) {
+} elseif (($_CONFIG['cache_admins'] == "Y") && ($CSS != "1") && ($CSS != "-1")) {
// Create cache file
$cacheInstance->cache_init("ADMINS");
unset($cacheArray['modules']['admin_only'][$key]);
$cacheArray['modules']['mem_only'][$mod] = $cacheArray['modules']['mem_only'][$key];
unset($cacheArray['modules']['mem_only'][$key]);
- $cacheArray['modules']['has_menu'][$mod] = $cacheArray['modules']['has_menu'][$key];
- unset($cacheArray['modules']['has_menu'][$key]);
+ if (isset($cacheArray['modules']['has_menu'][$key])) {
+ $cacheArray['modules']['has_menu'][$mod] = $cacheArray['modules']['has_menu'][$key];
+ unset($cacheArray['modules']['has_menu'][$key]);
+ } // END - if
}
}
-} elseif (($_CONFIG['cache_modreg'] == 'Y') && ($CSS != "1") && ($CSS != "-1")) {
+} elseif (($_CONFIG['cache_modreg'] == "Y") && ($CSS != "1") && ($CSS != "-1")) {
// Create cache file here
$cacheInstance->cache_init("MODULES");
$cacheInstance->cache_destroy();
unset($cacheArray);
}
-} elseif (($_CONFIG['cache_config'] == 'Y') && ($CSS != "1") && ($CSS != "-1")) {
+} elseif (($_CONFIG['cache_config'] == "Y") && ($CSS != "1") && ($CSS != "-1")) {
// Create cache file here
$cacheInstance->cache_init("CONFIG");
$cacheInstance->cache_destroy();
unset($REF_SYSTEM);
}
-} elseif (($_CONFIG['cache_refsys'] == 'Y') && ($CSS != "1") && ($CSS != "-1")) {
+} elseif (($_CONFIG['cache_refsys'] == "Y") && ($CSS != "1") && ($CSS != "-1")) {
// Create cache file here
$cacheInstance->cache_init("REFSYSTEM");
$cacheInstance->cache_destroy();
unset($REF_DEPTHS);
}
-} elseif (($_CONFIG['cache_refdepth'] == 'Y') && ($CSS != "1") && ($CSS != "-1")) {
+} elseif (($_CONFIG['cache_refdepth'] == "Y") && ($CSS != "1") && ($CSS != "-1")) {
// Create cache file here
$cacheInstance->cache_init("REFDEPTHS");
unset($cacheArray['admin_acls']);
}
}
- } elseif (($_CONFIG['cache_acls'] == 'Y') && ($CSS != "1") && ($CSS != "-1")) {
+ } elseif (($_CONFIG['cache_acls'] == "Y") && ($CSS != "1") && ($CSS != "-1")) {
// Create cache file here
$cacheInstance->cache_init("ADMINS_ACLS");