]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Merge pull request #249 from fbartels/patch-1
authornodiscc <nodiscc@gmail.com>
Fri, 26 Jun 2015 19:49:18 +0000 (21:49 +0200)
committernodiscc <nodiscc@gmail.com>
Fri, 26 Jun 2015 19:49:18 +0000 (21:49 +0200)
Restore compatibility with php 5.3

application/LinkDB.php

index 2b3fb60bb47be7fe9bd09728044315e55289186a..cf91ad481ddb84db88da8ed312b3c9ba0a7b3858 100644 (file)
@@ -303,7 +303,7 @@ class LinkDB implements Iterator, Countable, ArrayAccess
         // FIXME: accept double-quotes to search for a string "as is"?
         $filtered = array();
         $search = mb_convert_case($searchterms, MB_CASE_LOWER, 'UTF-8');
-        $keys = ['title', 'description', 'url', 'tags'];
+        $keys = array('title', 'description', 'url', 'tags');
 
         foreach ($this->links as $link) {
             $found = false;