xml-rpc: getCategories() - return unread article count (closes #260)
This commit is contained in:
parent
2e58d4e527
commit
e36f43d211
1 changed files with 3 additions and 2 deletions
|
@ -93,12 +93,13 @@
|
||||||
|
|
||||||
while ($line = db_fetch_assoc($result)) {
|
while ($line = db_fetch_assoc($result)) {
|
||||||
|
|
||||||
$unread = getFeedUnread($link, $line["id"]);
|
$unread = getFeedUnread($link, $line["id"], true);
|
||||||
|
|
||||||
$line_struct = new xmlrpcval(
|
$line_struct = new xmlrpcval(
|
||||||
array(
|
array(
|
||||||
"title" => new xmlrpcval($line["title"]),
|
"title" => new xmlrpcval($line["title"]),
|
||||||
"id" => new xmlrpcval($line["id"], "int")
|
"id" => new xmlrpcval($line["id"], "int"),
|
||||||
|
"unread" => new xmlrpcval($unread, "int")
|
||||||
),
|
),
|
||||||
"struct");
|
"struct");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue