From f1c2b672271642b2d008de35910813896dd092af Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 16 Dec 2009 14:22:01 +0300 Subject: [PATCH] api: getCategories - output format tweak --- api/index.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api/index.php b/api/index.php index 6cae3087..ff8c70f5 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)); } } -- 2.39.5