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 ac13d99 commit b67c371
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 b67c371

Please sign in to comment.