From 40aa5cf7efd1660f97e439c0674fa7cd36c1ebae Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 28 Oct 2009 01:42:37 +0000 Subject: [PATCH] Fixes a missing array element --- inc/libs/admins_functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/libs/admins_functions.php b/inc/libs/admins_functions.php index ea9a4c14e9..4273537490 100644 --- a/inc/libs/admins_functions.php +++ b/inc/libs/admins_functions.php @@ -70,7 +70,7 @@ function adminsCheckAdminAcl ($action, $what) { // Shall I test for a main or sub menu? (action or what?) $acl_mode = 'failed'; - if ((getExtensionVersion('cache') >= '0.1.2') && (count($GLOBALS['cache_array']['admin_acls']) > 0)) { + if ((getExtensionVersion('cache') >= '0.1.2') && (isset($GLOBALS['cache_array']['admin_acls'])) && (count($GLOBALS['cache_array']['admin_acls']) > 0)) { // Lookup in cache if ((!empty($action)) && (isset($GLOBALS['cache_array']['admin_acls']['action_menu'][$adminId])) & ($GLOBALS['cache_array']['admin_acls']['action_menu'][$adminId] == $action)) { // Main menu line found -- 2.30.2