- $MOD = $cacheArray['modules'];
- foreach ($cacheArray['modules']['module'] as $key=>$mod) {
- $cacheArray['modules']['id'][$mod] = $cacheArray['modules']['id'][$key];
+ $modArray = $cacheArray['modules'];
+ foreach ($modArray['module'] as $key=>$mod) {
+ $cacheArray['modules']['id'][$mod] = $modArray['id'][$key];