forked from wallabag/wallabag
add check
This commit is contained in:
@ -126,9 +126,13 @@ class WallabagRestController extends FOSRestController
|
|||||||
$this->get('wallabag_core.content_proxy')->assignTagsToEntry($entry, $tags);
|
$this->get('wallabag_core.content_proxy')->assignTagsToEntry($entry, $tags);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!is_null($isStarred)) {
|
||||||
$entry->setStarred((bool) $isStarred);
|
$entry->setStarred((bool) $isStarred);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!is_null($isArchived)) {
|
||||||
$entry->setArchived((bool) $isArchived);
|
$entry->setArchived((bool) $isArchived);
|
||||||
|
}
|
||||||
|
|
||||||
$em = $this->getDoctrine()->getManager();
|
$em = $this->getDoctrine()->getManager();
|
||||||
$em->persist($entry);
|
$em->persist($entry);
|
||||||
|
|||||||
Reference in New Issue
Block a user