summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/functions.php b/functions.php
index e66c84aee..389aece1b 100644
--- a/functions.php
+++ b/functions.php
@@ -7348,13 +7348,14 @@
if ($query) {
if (DB_TYPE == "pgsql") {
- $query .= " AND ttrss_entries.date_entered > NOW() - INTERVAL '30 days'";
+ $query = " ($query) AND ttrss_entries.date_entered > NOW() - INTERVAL '14 days'";
} else {
- $query .= " AND ttrss_entries.date_entered > DATE_SUB(NOW(), INTERVAL 30 DAY";
+ $query = " ($query) AND ttrss_entries.date_entered > DATE_SUB(NOW(), INTERVAL 14 DAY";
}
$query .= " AND ";
}
+
return $query;
}