]> git.mxchange.org Git - mailer.git/commitdiff
Fixes a missing array element
authorRoland Häder <roland@mxchange.org>
Wed, 28 Oct 2009 01:42:37 +0000 (01:42 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 28 Oct 2009 01:42:37 +0000 (01:42 +0000)
inc/libs/admins_functions.php

index ea9a4c14e9c4e2d0493723a66c186c2e9d9525a1..427353749031c0d932eb0bb9847621432ae1d536 100644 (file)
@@ -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