]> git.wh0rd.org Git - tt-rss.git/commitdiff
mark feed as updated even if blank
authorAndrew Dolgov <fox@madoka.spb.ru>
Wed, 18 Apr 2007 07:43:59 +0000 (08:43 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Wed, 18 Apr 2007 07:43:59 +0000 (08:43 +0100)
functions.php

index ff00059eab3e42187111481bcea50dec5d9f1e40..4044639a5c222a885e668832b777ca8b74de37a8 100644 (file)
                        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')) {