summaryrefslogtreecommitdiff
path: root/classes/api.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-07-02 20:27:31 +0300
committerAndrew Dolgov <[email protected]>2017-07-02 20:27:31 +0300
commite0f51d786f6bb14ab0a349fe167e797e7a5429b4 (patch)
treed7f7288c6428b4691a7cc997ee93587853ae8672 /classes/api.php
parent0bf7e007bb3a7039ea11601c7f93c6da33604228 (diff)
parentc053b97697954a60cb809a228a21287ddfbb8211 (diff)
Merge branch 'master' of git.fakecake.org:tt-rss
Diffstat (limited to 'classes/api.php')
-rw-r--r--classes/api.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/classes/api.php b/classes/api.php
index 0176e1672..00e58ee50 100644
--- a/classes/api.php
+++ b/classes/api.php
@@ -569,7 +569,7 @@ class API extends Handler {
if ($include_nested && $cat_id) {
$result = db_query("SELECT
- id, title FROM ttrss_feed_categories
+ id, title, order_id FROM ttrss_feed_categories
WHERE parent_cat = '$cat_id' AND owner_uid = " . $_SESSION["uid"] .
" ORDER BY id, title");
@@ -583,6 +583,7 @@ class API extends Handler {
"title" => $line["title"],
"unread" => $unread,
"is_cat" => true,
+ "order_id" => (int) $line["order_id"]
);
array_push($feeds, $row);
}