Skip to content

Commit

Permalink
fix: IntegrationTestBatchApplyUserAttributes
Browse files Browse the repository at this point in the history
  • Loading branch information
DeepDiver1975 committed Feb 29, 2024
1 parent da585d4 commit 1460f0e
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 1460f0e

Please sign in to comment.