aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ApiBundle/Controller
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/ApiBundle/Controller')
-rw-r--r--src/Wallabag/ApiBundle/Controller/WallabagRestController.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php
index ad85a177..28145e45 100644
--- a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php
+++ b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php
@@ -124,12 +124,12 @@ class WallabagRestController extends FOSRestController
124 $this->get('wallabag_core.content_proxy')->assignTagsToEntry($entry, $tags); 124 $this->get('wallabag_core.content_proxy')->assignTagsToEntry($entry, $tags);
125 } 125 }
126 126
127 if (!empty($isStarred)) { 127 if (true === (bool) $isStarred) {
128 $entry->setStarred($isStarred); 128 $entry->setStarred(true);
129 } 129 }
130 130
131 if (!empty($isArchived)) { 131 if (true === (bool) $isArchived) {
132 $entry->setArchived($isArchived); 132 $entry->setArchived(true);
133 } 133 }
134 134
135 if (!empty($content)) { 135 if (!empty($content)) {