diff --git a/src/Service/SearchService.php b/src/Service/SearchService.php index 84fac45..b1c1fdc 100644 --- a/src/Service/SearchService.php +++ b/src/Service/SearchService.php @@ -43,7 +43,9 @@ final class SearchService $findings = []; - if ((isset($filters['text']) && $filters['text'] !== '') || isset($filters['category'])) { + if ((isset($filters['text']) && $filters['text'] !== '') || + (isset($filters['category']) && $filters['category'] !== '') + ) { $findings = array_map( fn(\App\Entity\Finding $f) => $f->toSummary(), $this->findingRepository->findByFilters($filters)