diff options
author | Thomas Citharel <tcit@tcit.fr> | 2016-02-09 14:18:55 +0100 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-03-04 11:39:21 +0100 |
commit | 11a452813c5c048174f0d827c2a171bb53520d0a (patch) | |
tree | dc85fe8ac199ad56d5ae3e4ad062917a8ea717fd /src/Wallabag/ApiBundle/Controller/WallabagRestController.php | |
parent | 816ad4051baa401e46b42121e6813345a8030032 (diff) | |
download | wallabag-11a452813c5c048174f0d827c2a171bb53520d0a.tar.gz wallabag-11a452813c5c048174f0d827c2a171bb53520d0a.tar.zst wallabag-11a452813c5c048174f0d827c2a171bb53520d0a.zip |
use booleans instead of empty
Diffstat (limited to 'src/Wallabag/ApiBundle/Controller/WallabagRestController.php')
-rw-r--r-- | src/Wallabag/ApiBundle/Controller/WallabagRestController.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php index ad85a177..28145e45 100644 --- a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php +++ b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php | |||
@@ -124,12 +124,12 @@ class WallabagRestController extends FOSRestController | |||
124 | $this->get('wallabag_core.content_proxy')->assignTagsToEntry($entry, $tags); | 124 | $this->get('wallabag_core.content_proxy')->assignTagsToEntry($entry, $tags); |
125 | } | 125 | } |
126 | 126 | ||
127 | if (!empty($isStarred)) { | 127 | if (true === (bool) $isStarred) { |
128 | $entry->setStarred($isStarred); | 128 | $entry->setStarred(true); |
129 | } | 129 | } |
130 | 130 | ||
131 | if (!empty($isArchived)) { | 131 | if (true === (bool) $isArchived) { |
132 | $entry->setArchived($isArchived); | 132 | $entry->setArchived(true); |
133 | } | 133 | } |
134 | 134 | ||
135 | if (!empty($content)) { | 135 | if (!empty($content)) { |