aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorJérémy Benoist <j0k3r@users.noreply.github.com>2017-06-28 09:18:22 +0200
committerGitHub <noreply@github.com>2017-06-28 09:18:22 +0200
commit331e5b026189ff6433014659f32304b1706015e8 (patch)
tree17e8fe0823a02a2c56c2fc718c6c1cb5e1b6eb56 /src
parent39ffaba3232b6378f47883615c58a9ffba668af3 (diff)
downloadwallabag-331e5b026189ff6433014659f32304b1706015e8.tar.gz
wallabag-331e5b026189ff6433014659f32304b1706015e8.tar.zst
wallabag-331e5b026189ff6433014659f32304b1706015e8.zip
CS
Diffstat (limited to 'src')
-rw-r--r--src/Wallabag/ApiBundle/Controller/EntryRestController.php4
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}