summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-04-18 08:43:59 +0100
committerAndrew Dolgov <[email protected]>2007-04-18 08:43:59 +0100
commit77f0a2a7e17a8f3f8d56dbca76db56d937d043d0 (patch)
tree0318714889c0459cd81ebef40feb0e4988203ece /functions.php
parent155a2a53ffc4fac6299cc165cfc56114a61873f7 (diff)
mark feed as updated even if blank
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/functions.php b/functions.php
index ff00059ea..4044639a5 100644
--- a/functions.php
+++ b/functions.php
@@ -497,8 +497,15 @@
if (!is_array($iterator)) {
/* db_query($link, "UPDATE ttrss_feeds
SET last_error = 'Parse error: can\'t find any articles.'
- WHERE id = '$feed'"); */
- return; // WTF?
+ WHERE id = '$feed'"); */
+
+ // clear any errors and mark feed as updated if fetched okay
+ // even if it's blank
+
+ db_query($link, "UPDATE ttrss_feeds
+ SET last_updated = NOW(), last_error = '' WHERE id = '$feed'");
+
+ return; // no articles
}
if (defined('DAEMON_EXTENDED_DEBUG')) {