notice fix
authorRoland Häder <roland@mxchange.org>
Mon, 18 Feb 2008 22:09:40 +0000 (22:09 +0000)
committerRoland Häder <roland@mxchange.org>
Mon, 18 Feb 2008 22:09:40 +0000 (22:09 +0000)
inc/libs/admins_functions.php

index 210d88a..fa205b2 100644 (file)
@@ -82,7 +82,7 @@ function ADMINS_CHECK_ACL($act, $wht) {
        $lines = 0; $acl_mode = "failed";
        if (GET_EXT_VERSION("cache") >= "0.1.2") {
                // Load only from array when there are lines!
-               if (count($cacheArray['admin_acls']) > 0) {
+               if ((isset($cacheArray['admin_acls'])) && (is_array($cacheArray['admin_acls'])) && (count($cacheArray['admin_acls']) > 0)) {
                        // Load ACL from array
                        foreach ($cacheArray['admin_acls']['admin_id'] as $id=>$aid_acls) {
                                if ($aid == $aid_acls) {