From 0d3043a29c4aba541d6a18c2d5cc7ebffc6ddc78 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Tue, 15 Mar 2016 18:50:13 +0100 Subject: fix api properties and typo --- src/Wallabag/ApiBundle/Controller/WallabagRestController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Wallabag/ApiBundle/Controller') diff --git a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php index 2633a311..3265ba38 100644 --- a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php +++ b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php @@ -126,11 +126,11 @@ class WallabagRestController extends FOSRestController $this->get('wallabag_core.content_proxy')->assignTagsToEntry($entry, $tags); } - if (true === (bool) $isStarred) { + if ($isStarred === 'true') { $entry->setStarred(true); } - if (true === (bool) $isArchived) { + if ($isArchived === 'true') { $entry->setArchived(true); } -- cgit v1.2.3