]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Controller/WallabagRestController.php
GET /api/entries returns object, no more array
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Controller / WallabagRestController.php
index c298d84959ccee911d27f171581072cd354e2fd9..ab2c1181c11659c0653655b7df0eda4bf7bcf0e1 100644 (file)
@@ -45,7 +45,7 @@ class WallabagRestController extends Controller
             ->getRepository('WallabagCoreBundle:Entry')
             ->findEntries(1, $isArchived, $isStarred, $isDeleted, $sort, $order);
 
-        if (!is_array($entries)) {
+        if (is_null($entries)) {
             throw $this->createNotFoundException();
         }