]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
change test if we have no entry in GET /api/entries
authorNicolas Lœuillet <nicolas@loeuillet.org>
Tue, 10 Feb 2015 12:47:57 +0000 (13:47 +0100)
committerNicolas Lœuillet <nicolas@loeuillet.org>
Tue, 10 Feb 2015 12:47:57 +0000 (13:47 +0100)
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();
         }