mirror of
https://github.com/wallabag/wallabag.git
synced 2025-02-17 03:05:19 +00:00
change test if we have no entry in GET /api/entries
This commit is contained in:
parent
11204db45a
commit
3d3368cfd5
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue