Merge pull request #19277 from javieralapps4up/develop

Update card.php ($usergroup->members is not necessary and wastes resources)
This commit is contained in:
Laurent Destailleur 2021-11-05 14:29:46 +01:00 committed by GitHub
commit b56828219c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1932,7 +1932,7 @@ if ($action == 'create' || $action == 'adduserldap') {
$exclude = array();
$usergroup = new UserGroup($db);
$groupslist = $usergroup->listGroupsForUser($object->id);
$groupslist = $usergroup->listGroupsForUser($object->id, false);
if (!empty($groupslist)) {
foreach ($groupslist as $groupforuser) {