]> git.wh0rd.org - tt-rss.git/commitdiff
get_all_labels: order by caption
authorAndrew Dolgov <noreply@fakecake.org>
Sun, 30 Jul 2017 12:25:49 +0000 (15:25 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Sun, 30 Jul 2017 12:25:49 +0000 (15:25 +0300)
classes/labels.php

index e19a2967e3d51eb0471b655df8a06a21ad72e655..c46f70c946da6087605123040c7733114541e6d6 100644 (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);