]> git.wh0rd.org Git - tt-rss.git/commitdiff
api: fix setArticleLabel expecting wrong format for label_id
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sat, 12 Oct 2013 05:55:35 +0000 (09:55 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sat, 12 Oct 2013 05:55:35 +0000 (09:55 +0400)
classes/api.php

index bbbcbb5a8e1609fd39a3a5a7b838babaf7239667..b62a8b5fd90d7d1611e80e4b92f25320c82d7e55 100644 (file)
@@ -447,7 +447,7 @@ class API extends Handler {
                $assign = (bool) $this->dbh->escape_string($_REQUEST['assign']) == "true";
 
                $label = $this->dbh->escape_string(label_find_caption(
-                       $label_id, $_SESSION["uid"]));
+                       feed_to_label_id($label_id), $_SESSION["uid"]));
 
                $num_updated = 0;