]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/ApiBundle/Controller/EntryRestController.php
CS
[github/wallabag/wallabag.git] / src / Wallabag / ApiBundle / Controller / EntryRestController.php
index 9786c4d37ee37a6eecd6387fb2b2b59ae4ad3ba6..c7938633c742d79919decbafd97bb95e557d7ee8 100644 (file)
@@ -38,7 +38,7 @@ class EntryRestController extends WallabagRestController
     {
         $this->validateAuthentication();
 
-        $returnId = (null === $request->query->get('return_id')) ? 0 : (bool) $request->query->get('return_id');
+        $returnId = (null === $request->query->get('return_id')) ? false : (bool) $request->query->get('return_id');
         $urls = $request->query->get('urls', []);
 
         // handle multiple urls first
@@ -720,6 +720,6 @@ class EntryRestController extends WallabagRestController
             return $entry instanceof Entry ? $entry->getId() : null;
         }
 
-        return $entry instanceof Entry ? true : false;
+        return $entry instanceof Entry;
     }
 }