// Use cache, so it is fine
return true;
}
- } elseif ((isUserDataValid()) || (!isExtensionActive('user'))) {
- // Using cache or absend ext-user is fine here
+ } elseif (!isExtensionActive('user')) {
+ // Absent ext-user is really not good
+ return false;
+ } elseif (isUserDataValid()) {
+ // Using cache is fine
return true;
}
// Get default ACL of admin id
function getAdminDefaultAcl ($adminId) {
// By default an invalid ACL value is returned
- $data['default_acl'] = '***';
+ $data['default_acl'] = 'NO-ACL';
// Is sql_patches there and was it found in cache?
if (!isExtensionActive('sql_patches')) {
// Load from database
$result_admin_id = SQL_QUERY_ESC("SELECT `default_acl` FROM `{?_MYSQL_PREFIX?}_admins` WHERE `id`=%s LIMIT 1",
array(bigintval($adminId)), __FUNCTION__, __LINE__);
+
+ // Do we have an entry?
if (SQL_NUMROWS($result_admin_id) == 1) {
// Fetch data
$data = SQL_FETCHARRAY($result_admin_id);