diff options
author | Andrew Dolgov <[email protected]> | 2017-10-15 16:47:44 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-10-15 16:47:44 +0300 |
commit | 91f49ba17d3f0d36978985ce608f4972c948325d (patch) | |
tree | 4d44592a15f0f282487cd9a501b96f99808cacb9 /classes | |
parent | d320b55af99341a7ddc40c747168f20ecbfbf77a (diff) |
api, setArticleLabel: allow JSON booleans
Diffstat (limited to 'classes')
-rw-r--r-- | classes/api.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/api.php b/classes/api.php index 97050e105..bb4d33247 100644 --- a/classes/api.php +++ b/classes/api.php @@ -466,7 +466,7 @@ class API extends Handler { $article_ids = array_filter(explode(",", $this->dbh->escape_string($_REQUEST["article_ids"])), is_numeric); $label_id = (int) $this->dbh->escape_string($_REQUEST['label_id']); - $assign = (bool) ($this->dbh->escape_string($_REQUEST['assign']) == "true"); + $assign = sql_bool_to_bool($_REQUEST['assign']); $label = $this->dbh->escape_string(Labels::find_caption( Labels::feed_to_label_id($label_id), $_SESSION["uid"])); |