last minute PG fixes

This commit is contained in:
Andrew Dolgov 2005-09-07 15:48:12 +01:00
parent 763f226898
commit 20fcff19c6
2 changed files with 3 additions and 4 deletions

View File

@ -369,7 +369,8 @@
// printf("%d %s - %d %s<br>", 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 = "<img id='FUPDPIC-$id' src=\"images/updated.png\"

View File

@ -43,9 +43,7 @@
print "Feed <b>$title</b> ($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'");