Merge pull request #539 from daniellowtw/bugfix/array_filter-messes-with-keys
Fix error when filtering search tags
This commit is contained in:
commit
fa72470d5d
1 changed files with 1 additions and 1 deletions
|
@ -322,7 +322,7 @@ public static function tagsStrToArray($tags, $casesensitive)
|
|||
$tagsOut = $casesensitive ? $tags : mb_convert_case($tags, MB_CASE_LOWER, 'UTF-8');
|
||||
$tagsOut = str_replace(',', ' ', $tagsOut);
|
||||
|
||||
return array_filter(explode(' ', trim($tagsOut)), 'strlen');
|
||||
return array_values(array_filter(explode(' ', trim($tagsOut)), 'strlen'));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue