api: getCategories - output format tweak

This commit is contained in:
Andrew Dolgov 2009-12-16 14:22:01 +03:00
parent 53aff642ca
commit f1c2b67227

View file

@ -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));
}
}