1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 16:15:55 +00:00

add api test for labels, api: fix setArticleLabel assign not handled correctly

This commit is contained in:
Andrew Dolgov
2017-04-27 09:04:23 +03:00
parent 7c437c476c
commit 3517d363d3
2 changed files with 33 additions and 7 deletions

View File

@@ -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"]));