From: Andrew Dolgov Date: Wed, 18 Apr 2007 07:43:59 +0000 (+0100) Subject: mark feed as updated even if blank X-Git-Tag: 1.2.10~4 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=77f0a2a7e17a8f3f8d56dbca76db56d937d043d0;p=tt-rss.git mark feed as updated even if blank --- diff --git a/functions.php b/functions.php index ff00059e..4044639a 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')) {