SearchService.php: fix search detecting spurious flags

This commit is contained in:
Zankaria 2025-07-08 21:17:18 +02:00
parent 8028c1bd9a
commit 75ce687af5

View file

@ -370,7 +370,7 @@ class SearchService {
} }
$flags = []; $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); $flags = $this->matchStrings($this->flag_map, $filters->flag);
if (empty($flags)) { if (empty($flags)) {
// The query doesn't match any flags so it will always fail anyway. // The query doesn't match any flags so it will always fail anyway.