From: Andrew Dolgov Date: Thu, 8 Sep 2005 03:31:09 +0000 (+0100) Subject: reenable UPD support X-Git-Tag: 1.0.4~33 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=c43f77f5923def16dda1b45c75b63671e539526c;p=tt-rss.git reenable UPD support --- diff --git a/backend.php b/backend.php index ae35ee12..329f2783 100644 --- a/backend.php +++ b/backend.php @@ -364,9 +364,6 @@ $id = $line["id"]; $feed_id = $line["feed_id"]; -// printf("%d %s - %d %s
", strtotime($line["last_read"]), $line["last_read"], -// strtotime($line["updated"]), $line["updated"]); - /* if ($line["last_read"] && $line["updated"] && strtotime($line["last_read"]) < strtotime($line["updated"]) && ($line["unread"] == "f" || $line["unread"] == "0")) { @@ -379,8 +376,23 @@ alt=\"Updated\">"; } */ - $update_pic = "\"Updated\""; +// printf("L %d (%s) > U %d (%s) = %d
", +// strtotime($line["last_read"]), $line["last_read"], +// strtotime($line["updated"]), $line["updated"], +// strtotime($line["last_read"]) >= strtotime($line["updated"])); + + if ($line["last_read"] != "" && $line["updated"] != "" && + strtotime($line["last_read"]) < strtotime($line["updated"])) { + + $update_pic = "\"Updated\""; + + } else { + + $update_pic = "\"Updated\""; + + } if ($line["unread"] == "t" || $line["unread"] == "1") { $class .= "Unread";