Skip to content

Commit 43a99c5

Browse files
committed
fix: IntegrationTestBatchApplyUserAttributes
1 parent 886433f commit 43a99c5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Access.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,8 @@ public function countUsersByLoginName($loginName) {
769769
*/
770770
public function fetchListOfUsers($filter, $attr, $limit = null, $offset = null) {
771771
$ldapRecords = $this->searchUsers($filter, $attr, $limit, $offset);
772-
return $this->fetchList($ldapRecords, \count($attr) > 1);
772+
$manyAttributes = \is_string($attr) ? false : \count($attr) > 1;
773+
return $this->fetchList($ldapRecords, $manyAttributes);
773774
}
774775

775776
/**

0 commit comments

Comments
 (0)