1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 22:35:55 +00:00

get_all_labels: order by caption

This commit is contained in:
Andrew Dolgov
2017-07-30 15:25:49 +03:00
parent 5e78b0c253
commit 51f13e7736

View File

@@ -36,7 +36,7 @@ class Labels
static function get_all_labels($owner_uid) {
$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)) {
array_push($rv, $line);