]> git.wh0rd.org Git - tt-rss.git/commitdiff
api: fix getLabels never returning existing checked labels correctly
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 27 Nov 2013 17:54:27 +0000 (21:54 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 27 Nov 2013 17:54:27 +0000 (21:54 +0400)
classes/api.php

index 0b5757a6b9f61a2de825178bbcafec246ad75de9..e3fcc8d3d3e73aad4b7f27bbaca71d6b87046005 100644 (file)
@@ -427,7 +427,7 @@ class API extends Handler {
 
                        $checked = false;
                        foreach ($article_labels as $al) {
-                               if ($al[0] == $line['id']) {
+                               if (feed_to_label_id($al[0]) == $line['id']) {
                                        $checked = true;
                                        break;
                                }