filter to sql: fix missing bracket

This commit is contained in:
Andrew Dolgov 2011-05-04 12:17:15 +04:00
parent 798f5a646c
commit decf742ebd

View file

@ -7353,7 +7353,7 @@
if (DB_TYPE == "pgsql") { if (DB_TYPE == "pgsql") {
$query = " ($query) AND ttrss_entries.date_entered > NOW() - INTERVAL '14 days'"; $query = " ($query) AND ttrss_entries.date_entered > NOW() - INTERVAL '14 days'";
} else { } else {
$query = " ($query) AND ttrss_entries.date_entered > DATE_SUB(NOW(), INTERVAL 14 DAY"; $query = " ($query) AND ttrss_entries.date_entered > DATE_SUB(NOW(), INTERVAL 14 DAY)";
} }
$query .= " AND "; $query .= " AND ";
} }