From cdfc41149d25ae62c619c4d29697fa807a679eae Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 28 Jul 2013 23:36:57 +0400 Subject: [PATCH] get_article_labels: cache converted label ids --- include/labels.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/labels.php b/include/labels.php index c2a48a338..6e0bfcb98 100644 --- a/include/labels.php +++ b/include/labels.php @@ -42,7 +42,8 @@ ORDER BY caption"); while ($line = db_fetch_assoc($result)) { - $rk = array($line["label_id"], $line["caption"], $line["fg_color"], + $rk = array(label_to_feed_id($line["label_id"]), + $line["caption"], $line["fg_color"], $line["bg_color"]); array_push($rv, $rk); }