get_linked_feeds: fix mysql date syntax

This commit is contained in:
Andrew Dolgov 2011-04-20 15:40:10 +04:00
parent 414d0d1f46
commit 81731791d4
1 changed files with 1 additions and 1 deletions

View File

@ -7373,7 +7373,7 @@
if (DB_TYPE == "pgsql") { if (DB_TYPE == "pgsql") {
$date_qpart = "last_connected < NOW() - INTERVAL '6 hours'"; $date_qpart = "last_connected < NOW() - INTERVAL '6 hours'";
} else { } 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 $result = db_query($link, "SELECT id, access_key, access_url FROM ttrss_linked_instances