From: Andrew Dolgov Date: Wed, 16 Dec 2009 11:22:01 +0000 (+0300) Subject: api: getCategories - output format tweak X-Git-Tag: 1.4.0~183^2~8 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=f1c2b672271642b2d008de35910813896dd092af;p=tt-rss.git api: getCategories - output format tweak --- 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)); } }