]> git.wh0rd.org Git - tt-rss.git/commitdiff
api: getCategories - output format tweak
authorAndrew Dolgov <fox@bah.org.ru>
Wed, 16 Dec 2009 11:22:01 +0000 (14:22 +0300)
committerAndrew Dolgov <fox@bah.org.ru>
Wed, 16 Dec 2009 11:22:01 +0000 (14:22 +0300)
api/index.php

index 6cae3087160c267676480db08e052978d7aa2f44..ff8c70f58cc83632ad6bce070df5b3d18e27fba7 100644 (file)
                                $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));
                                }
                        }