diff options
Diffstat (limited to 'src/Wallabag')
-rw-r--r-- | src/Wallabag/CoreBundle/Controller/WallabagRestController.php | 2 | ||||
-rw-r--r-- | src/Wallabag/CoreBundle/Repository/EntryRepository.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/WallabagRestController.php b/src/Wallabag/CoreBundle/Controller/WallabagRestController.php index f77a3749..27d11da5 100644 --- a/src/Wallabag/CoreBundle/Controller/WallabagRestController.php +++ b/src/Wallabag/CoreBundle/Controller/WallabagRestController.php | |||
@@ -68,7 +68,7 @@ class WallabagRestController extends Controller | |||
68 | ->getRepository('WallabagCoreBundle:Entry') | 68 | ->getRepository('WallabagCoreBundle:Entry') |
69 | ->findEntries($this->getUser()->getId(), $isArchived, $isStarred, $isDeleted, $sort, $order); | 69 | ->findEntries($this->getUser()->getId(), $isArchived, $isStarred, $isDeleted, $sort, $order); |
70 | 70 | ||
71 | if (!is_array($entries)) { | 71 | if (!($entries)) { |
72 | throw $this->createNotFoundException(); | 72 | throw $this->createNotFoundException(); |
73 | } | 73 | } |
74 | 74 | ||
diff --git a/src/Wallabag/CoreBundle/Repository/EntryRepository.php b/src/Wallabag/CoreBundle/Repository/EntryRepository.php index 1805cf3f..b6f86707 100644 --- a/src/Wallabag/CoreBundle/Repository/EntryRepository.php +++ b/src/Wallabag/CoreBundle/Repository/EntryRepository.php | |||
@@ -98,7 +98,7 @@ class EntryRepository extends EntityRepository | |||
98 | * @param string $sort | 98 | * @param string $sort |
99 | * @param string $order | 99 | * @param string $order |
100 | * | 100 | * |
101 | * @return ArrayCollection | 101 | * @return array |
102 | */ | 102 | */ |
103 | public function findEntries($userId, $isArchived = null, $isStarred = null, $isDeleted = null, $sort = 'created', $order = 'ASC') | 103 | public function findEntries($userId, $isArchived = null, $isStarred = null, $isDeleted = null, $sort = 'created', $order = 'ASC') |
104 | { | 104 | { |
@@ -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 | } |