]> git.wh0rd.org Git - tt-rss.git/commitdiff
get_linked_feeds: fix mysql date syntax
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 20 Apr 2011 11:40:10 +0000 (15:40 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 20 Apr 2011 11:40:10 +0000 (15:40 +0400)
functions.php

index 4980140c1af59e017f8bca3929c525329a434ad5..7fd9df780a3a3a0b11f3212321e3fc5018b86a95 100644 (file)
                if (DB_TYPE == "pgsql") {
                        $date_qpart = "last_connected < NOW() - INTERVAL '6 hours'";
                } else {
-                       $date_qpart = "last_connected < DATE_SUB(NOW(), INTERVAL 6 HOUR";
+                       $date_qpart = "last_connected < DATE_SUB(NOW(), INTERVAL 6 HOUR)";
                }
 
                $result = db_query($link, "SELECT id, access_key, access_url FROM ttrss_linked_instances