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; });