mirror of https://github.com/wallabag/wallabag.git
use booleans instead of empty
This commit is contained in:
parent
816ad4051b
commit
11a452813c
|
@ -124,12 +124,12 @@ class WallabagRestController extends FOSRestController
|
||||||
$this->get('wallabag_core.content_proxy')->assignTagsToEntry($entry, $tags);
|
$this->get('wallabag_core.content_proxy')->assignTagsToEntry($entry, $tags);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($isStarred)) {
|
if (true === (bool) $isStarred) {
|
||||||
$entry->setStarred($isStarred);
|
$entry->setStarred(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($isArchived)) {
|
if (true === (bool) $isArchived) {
|
||||||
$entry->setArchived($isArchived);
|
$entry->setArchived(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($content)) {
|
if (!empty($content)) {
|
||||||
|
|
Loading…
Reference in New Issue