summaryrefslogtreecommitdiff
path: root/include/rssfuncs.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-03-04 21:49:14 +0400
committerAndrew Dolgov <[email protected]>2013-03-04 21:49:14 +0400
commitf1618695411db1346b41f4072e9b4e484ee2a4da (patch)
treee71997490c8593cc83c8683313b7d7fe1be815bc /include/rssfuncs.php
parentb7c8622ec75e7921a1e4d8b0aa3aedcb7b166c5d (diff)
when purging inactive feeds, set last_updated to NOW()
Diffstat (limited to 'include/rssfuncs.php')
-rw-r--r--include/rssfuncs.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/rssfuncs.php b/include/rssfuncs.php
index 77dd3aae2..f1d112979 100644
--- a/include/rssfuncs.php
+++ b/include/rssfuncs.php
@@ -179,6 +179,10 @@
while ($line = db_fetch_assoc($result)) {
$articles_removed += purge_feed($link, $line["id"], 0, false);
+
+ db_query($link, "UPDATE ttrss_feeds SET last_updated = NOW() WHERE
+ id = " . $line["id"]);
+
++$feeds_purged;
}