api: fix getLabels never returning existing checked labels correctly

This commit is contained in:
Andrew Dolgov 2013-11-27 21:54:27 +04:00
parent 21bb3c064a
commit 25237aea43
1 changed files with 1 additions and 1 deletions

View 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;
}