change test if we have no entry in GET /api/entries

This commit is contained in:
Nicolas Lœuillet 2015-02-10 13:47:57 +01:00
parent 11204db45a
commit 3d3368cfd5

View file

@ -45,7 +45,7 @@ class WallabagRestController extends Controller
->getRepository('WallabagCoreBundle:Entry')
->findEntries(1, $isArchived, $isStarred, $isDeleted, $sort, $order);
if (is_null($entries)) {
if (!($entries)) {
throw $this->createNotFoundException();
}