From: Andrew Dolgov Date: Wed, 7 Sep 2005 14:48:12 +0000 (+0100) Subject: last minute PG fixes X-Git-Tag: 1.0.3.1~6 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=20fcff19c63288054253b80ebe99c510990462cb;p=tt-rss.git last minute PG fixes --- diff --git a/backend.php b/backend.php index 95734796..d6e9e098 100644 --- a/backend.php +++ b/backend.php @@ -369,7 +369,8 @@ // printf("%d %s - %d %s
", strtotime($line["last_read"]), $line["last_read"], // strtotime($line["updated"]), $line["updated"]); - if (strtotime($line["last_read"]) < strtotime($line["updated"]) && + if ($line["last_read"] && $line["updated"] && + strtotime($line["last_read"]) < strtotime($line["updated"]) && ($line["unread"] == "f" || $line["unread"] == "0")) { $update_pic = "$title ($url)... "; - if (DB_TYPE == "mysql") { - $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME); - } + $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME); $result = db_query($link, "SELECT id FROM ttrss_feeds WHERE title = '$title' OR feed_url = '$url'");