aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag')
-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}