forked from leftypol/leftypol
SearchService.php: adjust wrong array_values
This commit is contained in:
parent
00a4435a61
commit
a6d4772db0
1 changed files with 2 additions and 2 deletions
|
|
@ -384,8 +384,8 @@ class SearchService {
|
|||
$flags = [];
|
||||
if (!empty($filters->flag) && !empty($this->flag_map)) {
|
||||
// A double array_values is necessary in order to re-index the array, otherwise it's left with random indexes.
|
||||
$reverse_flags = \array_values(\array_values($this->flag_map));
|
||||
$flags = $this->matchStrings($reverse_flags, $filters->flag);
|
||||
$reverse_flags = \array_values($this->flag_map);
|
||||
$flags = \array_values($this->matchStrings($reverse_flags, $filters->flag));
|
||||
if (empty($flags)) {
|
||||
// The query doesn't match any flags so it will always fail anyway.
|
||||
return [];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue