summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2009-12-16 14:22:01 +0300
committerAndrew Dolgov <[email protected]>2009-12-16 14:22:01 +0300
commitf1c2b672271642b2d008de35910813896dd092af (patch)
tree06ea0d7afe8f135c0b22d0a0caac1f7a5c02f39c /api
parent53aff642cabbe5d72f0395f48e77121111e314ff (diff)
api: getCategories - output format tweak
Diffstat (limited to 'api')
-rw-r--r--api/index.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/api/index.php b/api/index.php
index 6cae30871..ff8c70f58 100644
--- a/api/index.php
+++ b/api/index.php
@@ -182,8 +182,9 @@
$unread = getFeedUnread($link, $line["id"], true);
if ($unread || !$unread_only) {
- array_push($cats, array($line["id"] =>
- array("title" => $line["title"], "unread" => $unread)));
+ array_push($cats, array("id" => $line["id"],
+ "title" => $line["title"],
+ "unread" => $unread));
}
}