fix api properties and typo

This commit is contained in:
Thomas Citharel
2016-03-15 18:50:13 +01:00
parent 3500d4099f
commit 0d3043a29c
3 changed files with 5 additions and 5 deletions

View File

@ -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);
}