From fbb410667a346c0998984c93fe9ba371add52be2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Wed, 1 Mar 2023 17:28:13 +0100 Subject: [PATCH] fix: Always return sorted index array to make sure a json array is the result MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/Db/BoardMapper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Db/BoardMapper.php b/lib/Db/BoardMapper.php index 456152527..dfc742bb5 100644 --- a/lib/Db/BoardMapper.php +++ b/lib/Db/BoardMapper.php @@ -156,7 +156,7 @@ class BoardMapper extends QBMapper implements IPermissionMapper { $userBoards = $this->findAllByUser($userId, null, null, $since, $includeArchived, $before, $term); $groupBoards = $this->findAllByGroups($userId, $groups, null, null, $since, $includeArchived, $before, $term); $circleBoards = $this->findAllByCircles($userId, null, null, $since, $includeArchived, $before, $term); - $allBoards = array_unique(array_merge($userBoards, $groupBoards, $circleBoards)); + $allBoards = array_values(array_unique(array_merge($userBoards, $groupBoards, $circleBoards))); // Could be moved outside $acls = $this->aclMapper->findIn(array_map(function ($board) {