From: Nicolas LÅ“uillet Date: Tue, 10 Feb 2015 12:47:57 +0000 (+0100) Subject: change test if we have no entry in GET /api/entries X-Git-Tag: 2.0.0-alpha.0~82^2~1 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=3d3368cfd5e8dbe320428f479a49cabfddc58acd;p=github%2Fwallabag%2Fwallabag.git change test if we have no entry in GET /api/entries --- diff --git a/src/Wallabag/CoreBundle/Controller/WallabagRestController.php b/src/Wallabag/CoreBundle/Controller/WallabagRestController.php index ab2c1181..4784cb01 100644 --- a/src/Wallabag/CoreBundle/Controller/WallabagRestController.php +++ b/src/Wallabag/CoreBundle/Controller/WallabagRestController.php @@ -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(); }