aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ApiBundle/Controller/WallabagRestController.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/ApiBundle/Controller/WallabagRestController.php')
-rw-r--r--src/Wallabag/ApiBundle/Controller/WallabagRestController.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php
index d0a35013..a590dda1 100644
--- a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php
+++ b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php
@@ -126,13 +126,9 @@ class WallabagRestController extends FOSRestController
126 $this->get('wallabag_core.content_proxy')->assignTagsToEntry($entry, $tags); 126 $this->get('wallabag_core.content_proxy')->assignTagsToEntry($entry, $tags);
127 } 127 }
128 128
129 if (true === (bool) $isStarred) { 129 $entry->setStarred((bool) $isStarred);
130 $entry->setStarred(true);
131 }
132 130
133 if (true === (bool) $isArchived) { 131 $entry->setArchived((bool) $isArchived);
134 $entry->setArchived(true);
135 }
136 132
137 $em = $this->getDoctrine()->getManager(); 133 $em = $this->getDoctrine()->getManager();
138 $em->persist($entry); 134 $em->persist($entry);