api: getCategories - output format tweak

This commit is contained in:
Andrew Dolgov 2009-12-16 14:22:01 +03:00
parent 53aff642ca
commit f1c2b67227
1 changed files with 3 additions and 2 deletions

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