]> git.wh0rd.org Git - tt-rss.git/commitdiff
last minute PG fixes
authorAndrew Dolgov <fox@bah.spb.su>
Wed, 7 Sep 2005 14:48:12 +0000 (15:48 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Wed, 7 Sep 2005 14:48:12 +0000 (15:48 +0100)
backend.php
opml.php

index 957347967c32b28ee0064a2a9b3ab2b09e46a957..d6e9e0989a17204117d384546485b54f3cfb9a1d 100644 (file)
 //                     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\" 
index 67ed9139720c92f88ef115301c422ae593ff8928..0e601e111040b68d90440c761babefc530ea4842 100644 (file)
--- a/opml.php
+++ b/opml.php
@@ -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'");