Update card.php

Load $usergroup->members is not necessary and wastes resources
This commit is contained in:
javieralapps4up 2021-11-01 13:47:52 +01:00 committed by GitHub
parent 0020a5c61c
commit 8bfb656228
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1945,7 +1945,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) {