mirror of
https://github.com/wallabag/wallabag.git
synced 2025-07-17 17:08:37 +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);
|
$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…
Add table
Add a link
Reference in a new issue