]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/LinkFilter.php
Fix error when filtering search tags
[github/shaarli/Shaarli.git] / application / LinkFilter.php
index 5e0d801594533174e7bd5aaef188d3eda81dfc4a..e693b28428ba3951d2a6898b75941e0c5bd50572 100644 (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'));
     }
 }