forked from wallabag/wallabag
Merge pull request #1069 from wallabag/v2-fix-return-entries
GET /api/entries returns object, no more array
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user