summaryrefslogtreecommitdiff
path: root/classes/labels.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-07-30 15:25:49 +0300
committerAndrew Dolgov <[email protected]>2017-07-30 15:25:49 +0300
commit51f13e77367df10ca4eae8ab7a253c350c7b51d8 (patch)
tree6050467f8cef27d587863faf79bbdddfae03cd5c /classes/labels.php
parent5e78b0c253d56d85b0339636c8793f93c835b792 (diff)
get_all_labels: order by caption
Diffstat (limited to 'classes/labels.php')
-rw-r--r--classes/labels.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/labels.php b/classes/labels.php
index e19a2967e..c46f70c94 100644
--- a/classes/labels.php
+++ b/classes/labels.php
@@ -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);