mirror of
https://github.com/wallabag/wallabag.git
synced 2025-01-10 17:05:26 +00:00
GET /api/entries returns object, no more array
This commit is contained in:
parent
cbce162b40
commit
eaf95758dc
2 changed files with 2 additions and 2 deletions
|
@ -45,7 +45,7 @@ class WallabagRestController extends Controller
|
||||||
->getRepository('WallabagCoreBundle:Entry')
|
->getRepository('WallabagCoreBundle:Entry')
|
||||||
->findEntries(1, $isArchived, $isStarred, $isDeleted, $sort, $order);
|
->findEntries(1, $isArchived, $isStarred, $isDeleted, $sort, $order);
|
||||||
|
|
||||||
if (!is_array($entries)) {
|
if (is_null($entries)) {
|
||||||
throw $this->createNotFoundException();
|
throw $this->createNotFoundException();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -126,6 +126,6 @@ class EntryRepository extends EntityRepository
|
||||||
|
|
||||||
return $qb
|
return $qb
|
||||||
->getQuery()
|
->getQuery()
|
||||||
->getResult(Query::HYDRATE_ARRAY);
|
->getResult();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue