forked from wallabag/wallabag
change test if we have no entry in GET /api/entries
This commit is contained in:
@ -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_null($entries)) {
|
if (!($entries)) {
|
||||||
throw $this->createNotFoundException();
|
throw $this->createNotFoundException();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user