X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fmysql-manager.php;h=e9e263e34db0c1a5bdc751354216285af2cea676;hb=5ceaf268ba5434a7c6e003bc93c0720dcd6588a6;hp=111c65c3ef6dc03a349dab1c1c1022da8fd74e0a;hpb=3af8b17c962e094e3eaffbd6d111290cdb286c92;p=mailer.git diff --git a/inc/mysql-manager.php b/inc/mysql-manager.php index 111c65c3ef..e9e263e34d 100644 --- a/inc/mysql-manager.php +++ b/inc/mysql-manager.php @@ -616,6 +616,7 @@ function SEARCH_EMAIL_USERTAB ($email) { function IS_MEMBER () { // @TODO Why is this global??? #100 global $status; + if (!is_array($GLOBALS['last'])) $GLOBALS['last'] = array(); $ret = false; @@ -1472,7 +1473,11 @@ function GET_ADMIN_DEFAULT_ACL ($aid) { // By default an invalid ACL value is returned $ret = "***"; - if (isset($GLOBALS['cache_array']['admins']['def_acl'][$aid])) { + // Is sql_patches there and was it found in cache? + if (!EXT_IS_ACTIVE("sql_patches")) { + // Not found, which is bad, so we need to allow all + $ret = "allow"; + } elseif (isset($GLOBALS['cache_array']['admins']['def_acl'][$aid])) { // Use cache $ret = $GLOBALS['cache_array']['admins']['def_acl'][$aid];