]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Starred and Archived clears if article is already exists
authorYuriy Evdokimov <rurik19@yandex.ru>
Wed, 18 May 2016 05:30:33 +0000 (10:30 +0500)
committerYuriy Evdokimov <rurik19@yandex.ru>
Wed, 18 May 2016 05:30:33 +0000 (10:30 +0500)
src/Wallabag/ApiBundle/Controller/WallabagRestController.php

index 5202c524c68da16c0b2f0411e76ebbeeff1a7268..b786d4ca2fbfcf2d000402e26d0a195e304eaa50 100644 (file)
@@ -110,8 +110,8 @@ class WallabagRestController extends FOSRestController
 
         $url = $request->request->get('url');
         $title = $request->request->get('title');
-        $isArchived = (int) $request->request->get('archive');
-        $isStarred = (int) $request->request->get('starred');
+        $isArchived = $request->request->get('archive');
+        $isStarred = $request->request->get('starred');
 
         $entry = $this->get('wallabag_core.entry_repository')->findByUrlAndUserId($url, $this->getUser()->getId());