From: Andrew Dolgov Date: Wed, 27 Nov 2013 17:54:27 +0000 (+0400) Subject: api: fix getLabels never returning existing checked labels correctly X-Git-Tag: 1.11~16 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=25237aea4371cfa3096e525aed25c432ca067190;p=tt-rss.git api: fix getLabels never returning existing checked labels correctly --- diff --git a/classes/api.php b/classes/api.php index 0b5757a6..e3fcc8d3 100644 --- a/classes/api.php +++ b/classes/api.php @@ -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; }