mark feed as updated even if blank

This commit is contained in:
Andrew Dolgov 2007-04-18 08:43:59 +01:00
parent 155a2a53ff
commit 77f0a2a7e1
1 changed files with 9 additions and 2 deletions

View File

@ -498,7 +498,14 @@
/* db_query($link, "UPDATE ttrss_feeds
SET last_error = 'Parse error: can\'t find any articles.'
WHERE id = '$feed'"); */
return; // WTF?
// 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')) {