Skip to content

Commit

Permalink
fix: IntegrationTestBatchApplyUserAttributes
Browse files Browse the repository at this point in the history
  • Loading branch information
DeepDiver1975 committed Oct 11, 2023
1 parent 886433f commit 43a99c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Access.php
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,8 @@ public function countUsersByLoginName($loginName) {
*/
public function fetchListOfUsers($filter, $attr, $limit = null, $offset = null) {
$ldapRecords = $this->searchUsers($filter, $attr, $limit, $offset);
return $this->fetchList($ldapRecords, \count($attr) > 1);
$manyAttributes = \is_string($attr) ? false : \count($attr) > 1;
return $this->fetchList($ldapRecords, $manyAttributes);
}

/**
Expand Down

0 comments on commit 43a99c5

Please sign in to comment.