X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FApiBundle%2FController%2FWallabagRestController.php;h=744e1a601547b3d968c060dc3657007b1c3c6ce5;hb=bc2b947cd54e49a03c267f3c0f13dc5b8a04d962;hp=d0a35013850c3794c6582205fd0befc5b1c46620;hpb=189ef6342a3f9befec379c406821ed10730cacd2;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php index d0a35013..744e1a60 100644 --- a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php +++ b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php @@ -126,12 +126,12 @@ class WallabagRestController extends FOSRestController $this->get('wallabag_core.content_proxy')->assignTagsToEntry($entry, $tags); } - if (true === (bool) $isStarred) { - $entry->setStarred(true); + if (!is_null($isStarred)) { + $entry->setStarred((bool) $isStarred); } - if (true === (bool) $isArchived) { - $entry->setArchived(true); + if (!is_null($isArchived)) { + $entry->setArchived((bool) $isArchived); } $em = $this->getDoctrine()->getManager();