api: getCategories - output format tweak
This commit is contained in:
parent
53aff642ca
commit
f1c2b67227
1 changed files with 3 additions and 2 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue