]> git.mxchange.org Git - mailer.git/blobdiff - inc/mysql-manager.php
Possible fix for uncomplete rewritten links
[mailer.git] / inc / mysql-manager.php
index 111c65c3ef6dc03a349dab1c1c1022da8fd74e0a..e9e263e34db0c1a5bdc751354216285af2cea676 100644 (file)
@@ -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];