aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorArthur <arthur@hoa.ro>2016-04-14 14:48:00 +0100
committerArthur <arthur@hoa.ro>2016-04-14 14:48:00 +0100
commitfa72470d5d14082e6c05b83f3f32439298dbc0e3 (patch)
tree9851c1850c14d851a7487ce58eea5b4220b0c0c9
parent62a5ba083d5137feaef9f4293c401521bad603b0 (diff)
parent20f89623c01696a05459c4b1191cfe3adfb0105b (diff)
downloadShaarli-fa72470d5d14082e6c05b83f3f32439298dbc0e3.tar.gz
Shaarli-fa72470d5d14082e6c05b83f3f32439298dbc0e3.tar.zst
Shaarli-fa72470d5d14082e6c05b83f3f32439298dbc0e3.zip
Merge pull request #539 from daniellowtw/bugfix/array_filter-messes-with-keys
Fix error when filtering search tags
-rw-r--r--application/LinkFilter.php2
1 files changed, 1 insertions, 1 deletions
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
322 $tagsOut = $casesensitive ? $tags : mb_convert_case($tags, MB_CASE_LOWER, 'UTF-8'); 322 $tagsOut = $casesensitive ? $tags : mb_convert_case($tags, MB_CASE_LOWER, 'UTF-8');
323 $tagsOut = str_replace(',', ' ', $tagsOut); 323 $tagsOut = str_replace(',', ' ', $tagsOut);
324 324
325 return array_filter(explode(' ', trim($tagsOut)), 'strlen'); 325 return array_values(array_filter(explode(' ', trim($tagsOut)), 'strlen'));
326 } 326 }
327} 327}
328 328