From e36f43d211f1a8d2e172d9a0efed99f210b998c9 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 29 Nov 2009 11:17:22 +0300 Subject: [PATCH] xml-rpc: getCategories() - return unread article count (closes #260) --- xml-rpc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xml-rpc.php b/xml-rpc.php index 26a49ebd..4ad84678 100644 --- a/xml-rpc.php +++ b/xml-rpc.php @@ -93,12 +93,13 @@ while ($line = db_fetch_assoc($result)) { - $unread = getFeedUnread($link, $line["id"]); + $unread = getFeedUnread($link, $line["id"], true); $line_struct = new xmlrpcval( array( "title" => new xmlrpcval($line["title"]), - "id" => new xmlrpcval($line["id"], "int") + "id" => new xmlrpcval($line["id"], "int"), + "unread" => new xmlrpcval($unread, "int") ), "struct"); -- 2.39.5