X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=application%2FLinkFilter.php;h=e693b28428ba3951d2a6898b75941e0c5bd50572;hb=765391cb376500a8372aedd426dd4bfbe04ee8ec;hp=5e0d801594533174e7bd5aaef188d3eda81dfc4a;hpb=1a84bf1e2bc45787d9cfa81fa427a11a3aba623a;p=github%2Fshaarli%2FShaarli.git diff --git a/application/LinkFilter.php b/application/LinkFilter.php index 5e0d8015..e693b284 100644 --- a/application/LinkFilter.php +++ b/application/LinkFilter.php @@ -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')); } }