mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-23 17:41:01 +00:00
use booleans instead of empty
This commit is contained in:
parent
816ad4051b
commit
11a452813c
1 changed files with 4 additions and 4 deletions
|
@ -124,12 +124,12 @@ class WallabagRestController extends FOSRestController
|
|||
$this->get('wallabag_core.content_proxy')->assignTagsToEntry($entry, $tags);
|
||||
}
|
||||
|
||||
if (!empty($isStarred)) {
|
||||
$entry->setStarred($isStarred);
|
||||
if (true === (bool) $isStarred) {
|
||||
$entry->setStarred(true);
|
||||
}
|
||||
|
||||
if (!empty($isArchived)) {
|
||||
$entry->setArchived($isArchived);
|
||||
if (true === (bool) $isArchived) {
|
||||
$entry->setArchived(true);
|
||||
}
|
||||
|
||||
if (!empty($content)) {
|
||||
|
|
Loading…
Reference in a new issue