mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-16 18:30:17 +01:00
GET /api/entries returns object, no more array
This commit is contained in:
parent
cbce162b40
commit
eaf95758dc
@ -45,7 +45,7 @@ class WallabagRestController extends Controller
|
||||
->getRepository('WallabagCoreBundle:Entry')
|
||||
->findEntries(1, $isArchived, $isStarred, $isDeleted, $sort, $order);
|
||||
|
||||
if (!is_array($entries)) {
|
||||
if (is_null($entries)) {
|
||||
throw $this->createNotFoundException();
|
||||
}
|
||||
|
||||
|
@ -126,6 +126,6 @@ class EntryRepository extends EntityRepository
|
||||
|
||||
return $qb
|
||||
->getQuery()
|
||||
->getResult(Query::HYDRATE_ARRAY);
|
||||
->getResult();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user