Fixed cache in functions_users.php

This commit is contained in:
manuel.montes 2018-05-28 17:33:35 +02:00
parent 01cce15955
commit bc98327bb4
1 changed files with 1 additions and 1 deletions

View File

@ -344,7 +344,7 @@ function users_get_groups ($id_user = false, $privilege = "AR", $returnAllGroup
$acl_column = get_acl_column($privilege);
if (array_key_exists($users_group_cache_key, $users_group_cache)) {
if (array_key_exists($users_group_cache_key, $users_group_cache) && $cache) {
return $users_group_cache[$users_group_cache_key];
}