Update card.php
Load $usergroup->members is not necessary and wastes resources
This commit is contained in:
parent
0020a5c61c
commit
8bfb656228
@ -1945,7 +1945,7 @@ if ($action == 'create' || $action == 'adduserldap') {
|
|||||||
$exclude = array();
|
$exclude = array();
|
||||||
|
|
||||||
$usergroup = new UserGroup($db);
|
$usergroup = new UserGroup($db);
|
||||||
$groupslist = $usergroup->listGroupsForUser($object->id);
|
$groupslist = $usergroup->listGroupsForUser($object->id, false);
|
||||||
|
|
||||||
if (!empty($groupslist)) {
|
if (!empty($groupslist)) {
|
||||||
foreach ($groupslist as $groupforuser) {
|
foreach ($groupslist as $groupforuser) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user