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