return if article is updated in rss.getFeedHeadlines

This commit is contained in:
Andrew Dolgov 2006-06-19 10:11:52 +01:00
parent 4d531f9c83
commit 632c674172

View file

@ -276,11 +276,15 @@
while ($line = db_fetch_assoc($result)) {
$is_updated = ($line["last_read"] == "" && ($line["unread"] != "t" && $line["unread"] != "1"));
$headline_items = array(
"id" => new xmlrpcval($line["id"], "int"),
"unread" => new xmlrpcval(sql_bool_to_bool($line["unread"]), "boolean"),
"marked" => new xmlrpcval(sql_bool_to_bool($line["marked"]), "boolean"),
"updated" => new xmlrpcval(strtotime($line["updated"]), "int"),
"is_updated" => new xmlrpcval($is_updated, "boolean"),
"title" => new xmlrpcval($line["title"])
);