get_all_labels: order by caption

master
Andrew Dolgov 7 years ago
parent 5e78b0c253
commit 51f13e7736

@ -36,7 +36,7 @@ class Labels
static function get_all_labels($owner_uid) { static function get_all_labels($owner_uid) {
$rv = array(); $rv = array();
$result = db_query("SELECT id, fg_color, bg_color, caption FROM ttrss_labels2 WHERE owner_uid = " . $owner_uid); $result = db_query("SELECT id, fg_color, bg_color, caption FROM ttrss_labels2 WHERE owner_uid = '$owner_uid' ORDER BY caption");
while ($line = db_fetch_assoc($result)) { while ($line = db_fetch_assoc($result)) {
array_push($rv, $line); array_push($rv, $line);

Loading…
Cancel
Save