// Rewrite all entries
foreach ($GLOBALS['cache_array']['admin'] as $key => $entry) {
// Do we have login or regular entries?
- if ($key == 'login') {
- // Login, so use id
- $admins[$key][$GLOBALS['cache_array']['admin']['admin_id'][$idx]] = $entry[$idx];
- } else {
- // Regular entry so use login
+ if ($key == 'admin_id') {
+ // Admin id, so use login
$admins[$key][$GLOBALS['cache_array']['admin']['login'][$idx]] = $entry[$idx];
+ } else {
+ // Regular entry so use id
+ $admins[$key][$GLOBALS['cache_array']['admin']['admin_id'][$idx]] = $entry[$idx];
}
} // END - foreach
} // END - foreach
$GLOBALS['cache_instance']->removeCacheFile();
unset($GLOBALS['cache_array']['admin']);
}
-} elseif (getOutputMode() != 1) {
+} elseif (getScriptOutputMode() != 1) {
// Create cache file
$GLOBALS['cache_instance']->init();
if (($GLOBALS['cache_instance']->loadCacheFile('admin_acls')) && ($GLOBALS['cache_instance']->extensionVersionMatches('admins'))) {
// Load referal system from cache
$GLOBALS['cache_array']['admin_acls'] = $GLOBALS['cache_instance']->getArrayFromCache();
- } elseif (getOutputMode() != 1) {
+ } elseif (getScriptOutputMode() != 1) {
// Create cache file here
$GLOBALS['cache_instance']->init();