]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/feed/FeedBuilder.php
Add strict types for bookmarks management
[github/shaarli/Shaarli.git] / application / feed / FeedBuilder.php
index f6def6308849eb6401fd908a4d063046f163dc11..f70fce4fb7fa0589269256c1907ffa5654051d01 100644 (file)
@@ -102,7 +102,7 @@ class FeedBuilder
         }
 
         // Optionally filter the results:
-        $linksToDisplay = $this->linkDB->search($userInput, null, false, false, true);
+        $linksToDisplay = $this->linkDB->search($userInput ?? [], null, false, false, true);
 
         $nblinksToDisplay = $this->getNbLinks(count($linksToDisplay), $userInput);