1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-09-15 18:57:05 +00:00

Merge pull request #1069 from wallabag/v2-fix-return-entries

GET /api/entries returns object, no more array
This commit is contained in:
Jeremy 2015-02-10 14:51:32 +01:00
commit f59f45d740
2 changed files with 3 additions and 3 deletions

View file

@ -68,7 +68,7 @@ class WallabagRestController extends Controller
->getRepository('WallabagCoreBundle:Entry')
->findEntries($this->getUser()->getId(), $isArchived, $isStarred, $isDeleted, $sort, $order);
if (!is_array($entries)) {
if (!($entries)) {
throw $this->createNotFoundException();
}