summaryrefslogtreecommitdiff
path: root/classes/api.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-11-27 21:54:27 +0400
committerAndrew Dolgov <[email protected]>2013-11-27 21:54:27 +0400
commit25237aea4371cfa3096e525aed25c432ca067190 (patch)
treec197dcc2bfe5f1605ca537648bde06c49a6ef7d0 /classes/api.php
parent21bb3c064afe1ec043a45ad0a6026ddd9e75f152 (diff)
api: fix getLabels never returning existing checked labels correctly
Diffstat (limited to 'classes/api.php')
-rw-r--r--classes/api.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/api.php b/classes/api.php
index 0b5757a6b..e3fcc8d3d 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;
}