From 1460f0e3338906a33262c9c3aab6c23a7a0a598c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= <1005065+DeepDiver1975@users.noreply.github.com> Date: Tue, 10 Oct 2023 19:23:18 +0200 Subject: [PATCH] fix: IntegrationTestBatchApplyUserAttributes --- lib/Access.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Access.php b/lib/Access.php index 83143ba8..6c19ec83 100644 --- a/lib/Access.php +++ b/lib/Access.php @@ -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); } /**