From: Andrew Dolgov Date: Wed, 1 May 2013 22:20:34 +0000 (+0400) Subject: move the precautionary timestamp bumping X-Git-Tag: 1.7.9~25^2~26 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=5ef8409700c0d2b85f4fe2f5d3b11ea51a18a355;p=tt-rss.git move the precautionary timestamp bumping --- diff --git a/include/rssfuncs.php b/include/rssfuncs.php index 2f570e37..730adc66 100644 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -210,10 +210,6 @@ return false; } - // set last update to now so if anything *simplepie* crashes later we won't be - // continuously failing on the same feed - db_query("UPDATE ttrss_feeds SET last_updated = NOW() WHERE id = '$feed'"); - $last_updated = db_fetch_result($result, 0, "last_updated"); $last_article_timestamp = @strtotime(db_fetch_result($result, 0, "last_article_timestamp")); @@ -357,6 +353,10 @@ $feed_data = $plugin->hook_feed_fetched($feed_data); } + // set last update to now so if anything *simplepie* crashes later we won't be + // continuously failing on the same feed + db_query("UPDATE ttrss_feeds SET last_updated = NOW() WHERE id = '$feed'"); + if (!$rss) { $rss = new FeedParser($feed_data); $rss->init();