From 86b347568b94fcbcaa8355d670127480b24b6b87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Fri, 21 Aug 2020 10:01:11 +0200 Subject: [PATCH] Fix getUserBoards call MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/Search/DeckProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Search/DeckProvider.php b/lib/Search/DeckProvider.php index 84015e90d..fa961557c 100644 --- a/lib/Search/DeckProvider.php +++ b/lib/Search/DeckProvider.php @@ -79,7 +79,7 @@ public function getName(): string { public function search(IUser $user, ISearchQuery $query): SearchResult { $boards = $this->boardService->getUserBoards(); - $matchedBoards = array_filter($this->getUserBoards(-1), static function (Board $board) use ($query) { + $matchedBoards = array_filter($this->boardService->getUserBoards(), static function (Board $board) use ($query) { return mb_stripos($board->getTitle(), $query->getTerm()) > -1; });