forked from leftypol/leftypol
SearchService.php: fix search detecting spurious flags
This commit is contained in:
parent
8028c1bd9a
commit
75ce687af5
1 changed files with 1 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue