diff --git a/inc/Service/SearchService.php b/inc/Service/SearchService.php index 61019e4b..dafceb9e 100644 --- a/inc/Service/SearchService.php +++ b/inc/Service/SearchService.php @@ -370,7 +370,7 @@ class SearchService { } $flags = []; - if ($filters->flag !== null && !empty($this->flag_map)) { + if (!empty($filters->flag) && !empty($this->flag_map)) { $flags = $this->matchStrings($this->flag_map, $filters->flag); if (empty($flags)) { // The query doesn't match any flags so it will always fail anyway.