mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-17 18:59:35 +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')
|
->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 New Issue
Block a user