Merge pull request #539 from daniellowtw/bugfix/array_filter-messes-with-keys

Fix error when filtering search tags
This commit is contained in:
Arthur 2016-04-14 14:48:00 +01:00
commit fa72470d5d
1 changed files with 1 additions and 1 deletions

View File

@ -322,7 +322,7 @@ class LinkFilter
$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'));
}
}