diff options
author | Jérémy Benoist <j0k3r@users.noreply.github.com> | 2017-06-28 09:18:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-28 09:18:22 +0200 |
commit | 331e5b026189ff6433014659f32304b1706015e8 (patch) | |
tree | 17e8fe0823a02a2c56c2fc718c6c1cb5e1b6eb56 /src/Wallabag/ApiBundle/Controller | |
parent | 39ffaba3232b6378f47883615c58a9ffba668af3 (diff) | |
download | wallabag-331e5b026189ff6433014659f32304b1706015e8.tar.gz wallabag-331e5b026189ff6433014659f32304b1706015e8.tar.zst wallabag-331e5b026189ff6433014659f32304b1706015e8.zip |
CS
Diffstat (limited to 'src/Wallabag/ApiBundle/Controller')
-rw-r--r-- | src/Wallabag/ApiBundle/Controller/EntryRestController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Wallabag/ApiBundle/Controller/EntryRestController.php b/src/Wallabag/ApiBundle/Controller/EntryRestController.php index 9786c4d3..c7938633 100644 --- a/src/Wallabag/ApiBundle/Controller/EntryRestController.php +++ b/src/Wallabag/ApiBundle/Controller/EntryRestController.php | |||
@@ -38,7 +38,7 @@ class EntryRestController extends WallabagRestController | |||
38 | { | 38 | { |
39 | $this->validateAuthentication(); | 39 | $this->validateAuthentication(); |
40 | 40 | ||
41 | $returnId = (null === $request->query->get('return_id')) ? 0 : (bool) $request->query->get('return_id'); | 41 | $returnId = (null === $request->query->get('return_id')) ? false : (bool) $request->query->get('return_id'); |
42 | $urls = $request->query->get('urls', []); | 42 | $urls = $request->query->get('urls', []); |
43 | 43 | ||
44 | // handle multiple urls first | 44 | // handle multiple urls first |
@@ -720,6 +720,6 @@ class EntryRestController extends WallabagRestController | |||
720 | return $entry instanceof Entry ? $entry->getId() : null; | 720 | return $entry instanceof Entry ? $entry->getId() : null; |
721 | } | 721 | } |
722 | 722 | ||
723 | return $entry instanceof Entry ? true : false; | 723 | return $entry instanceof Entry; |
724 | } | 724 | } |
725 | } | 725 | } |