diff options
author | Andrew Dolgov <[email protected]> | 2017-04-27 09:04:23 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-04-27 09:04:23 +0300 |
commit | 3517d363d339783c9342f615e4cbcad3e31e111e (patch) | |
tree | 06c6359f76e1ba5d65a1dfe4cc1b23c506d8a203 /classes | |
parent | 7c437c476caf9345db7f8eb8fb1dee09b1fac233 (diff) |
add api test for labels, api: fix setArticleLabel assign not handled correctly
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 3737cf07e..2f1a563c0 100644 --- a/classes/api.php +++ b/classes/api.php @@ -479,7 +479,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 = (bool) ($this->dbh->escape_string($_REQUEST['assign']) == "true"); $label = $this->dbh->escape_string(label_find_caption( feed_to_label_id($label_id), $_SESSION["uid"])); |