diff options
author | Andrew Dolgov <[email protected]> | 2009-12-16 14:22:01 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2009-12-16 14:22:01 +0300 |
commit | f1c2b672271642b2d008de35910813896dd092af (patch) | |
tree | 06ea0d7afe8f135c0b22d0a0caac1f7a5c02f39c | |
parent | 53aff642cabbe5d72f0395f48e77121111e314ff (diff) |
api: getCategories - output format tweak
-rw-r--r-- | api/index.php | 5 |
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)); } } |