From 75ce687af528506c73529a51e98b9e157bacffaa Mon Sep 17 00:00:00 2001 From: Zankaria Date: Tue, 8 Jul 2025 21:17:18 +0200 Subject: [PATCH] SearchService.php: fix search detecting spurious flags --- inc/Service/SearchService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.