aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2015-02-10 06:44:38 +0100
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2015-02-10 06:44:38 +0100
commiteaf95758dc3ebc0e666a8317cd37311f03cd2233 (patch)
tree0edc9b7eeb3578af53384476d58a55537ca2c783
parentcbce162b407024882d8c37a7e3298c85175d2651 (diff)
downloadwallabag-eaf95758dc3ebc0e666a8317cd37311f03cd2233.tar.gz
wallabag-eaf95758dc3ebc0e666a8317cd37311f03cd2233.tar.zst
wallabag-eaf95758dc3ebc0e666a8317cd37311f03cd2233.zip
GET /api/entries returns object, no more array
-rw-r--r--src/Wallabag/CoreBundle/Controller/WallabagRestController.php2
-rw-r--r--src/Wallabag/CoreBundle/Repository/EntryRepository.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/WallabagRestController.php b/src/Wallabag/CoreBundle/Controller/WallabagRestController.php
index c298d849..ab2c1181 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_array($entries)) { 48 if (is_null($entries)) {
49 throw $this->createNotFoundException(); 49 throw $this->createNotFoundException();
50 } 50 }
51 51
diff --git a/src/Wallabag/CoreBundle/Repository/EntryRepository.php b/src/Wallabag/CoreBundle/Repository/EntryRepository.php
index 5ae1337a..a33d698d 100644
--- a/src/Wallabag/CoreBundle/Repository/EntryRepository.php
+++ b/src/Wallabag/CoreBundle/Repository/EntryRepository.php
@@ -126,6 +126,6 @@ class EntryRepository extends EntityRepository
126 126
127 return $qb 127 return $qb
128 ->getQuery() 128 ->getQuery()
129 ->getResult(Query::HYDRATE_ARRAY); 129 ->getResult();
130 } 130 }
131} 131}