aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2015-02-10 13:47:57 +0100
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2015-02-10 13:47:57 +0100
commit3d3368cfd5e8dbe320428f479a49cabfddc58acd (patch)
tree007e3cad09696bfd30ae9a7196063881823f2712 /src
parent11204db45a378e6679abff2f75e6533e780d1a99 (diff)
downloadwallabag-3d3368cfd5e8dbe320428f479a49cabfddc58acd.tar.gz
wallabag-3d3368cfd5e8dbe320428f479a49cabfddc58acd.tar.zst
wallabag-3d3368cfd5e8dbe320428f479a49cabfddc58acd.zip
change test if we have no entry in GET /api/entries
Diffstat (limited to 'src')
-rw-r--r--src/Wallabag/CoreBundle/Controller/WallabagRestController.php2
1 files changed, 1 insertions, 1 deletions
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
45 ->getRepository('WallabagCoreBundle:Entry') 45 ->getRepository('WallabagCoreBundle:Entry')
46 ->findEntries(1, $isArchived, $isStarred, $isDeleted, $sort, $order); 46 ->findEntries(1, $isArchived, $isStarred, $isDeleted, $sort, $order);
47 47
48 if (is_null($entries)) { 48 if (!($entries)) {
49 throw $this->createNotFoundException(); 49 throw $this->createNotFoundException();
50 } 50 }
51 51