Skip to content

Commit

Permalink
Merge pull request #5 from nestordedios/patch-2
Browse files Browse the repository at this point in the history
Fix unexpected ], expected ) error
  • Loading branch information
bobdenotter authored May 12, 2022
2 parents 2bc002a + 8f10c56 commit 47ebc6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/SearchController.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function search(): Response
$tnt->selectIndex('records.index');

$results = $tnt->search($searchTerm, 10000);
$records = $this->repository->findBy(['id' => $results['ids'], 'status' => Statuses::PUBLISHED]]);
$records = $this->repository->findBy(['id' => $results['ids'], 'status' => Statuses::PUBLISHED]);
$records = new Pagerfanta(new ArrayAdapter($records));
$records->setMaxPerPage($amountPerPage);
$records->setCurrentPage($page);
Expand Down

0 comments on commit 47ebc6b

Please sign in to comment.