notice fix
[mailer.git] / 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) {