summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/functions.php b/functions.php
index ab9b571fe..9df335188 100644
--- a/functions.php
+++ b/functions.php
@@ -4,9 +4,9 @@
define('MAGPIE_OUTPUT_ENCODING', 'UTF-8');
function purge_old_posts() {
- if (PURGE_OLD_DAYS) {
+ if (PURGE_OLD_DAYS > 0) {
$result = pg_query("DELETE FROM ttrss_entries WHERE
- date_entered < NOW() - INTERVAL '30 days'");
+ date_entered < NOW() - INTERVAL '".PURGE_OLD_DAYS." days'");
}
}