]> git.immae.eu Git - github/shaarli/Shaarli.git/commit
Fix error when filtering search tags 539/head
authorD Low <daniellowtw@gmail.com>
Wed, 13 Apr 2016 23:04:00 +0000 (00:04 +0100)
committerD Low <daniellowtw@gmail.com>
Wed, 13 Apr 2016 23:10:39 +0000 (00:10 +0100)
commit20f89623c01696a05459c4b1191cfe3adfb0105b
treea9ae52c01f411f60ffe642d23f4a75cf2eb8a54c
parent9f400b0dad68b82d65692bd6ab6190f6a787fa89
Fix error when filtering search tags

Arrays are key-value maps. We should reindex the array after a filter
since we are using the key and count to do array access in filterTags.
An example would be searching for "foo, bar", after the array filter,
our array is actually (0 -> foo, 2 -> bar) which will cause an error
when trying to access $searchtags[1].
application/LinkFilter.php