summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-05-02 02:20:34 +0400
committerAndrew Dolgov <[email protected]>2013-05-02 02:20:34 +0400
commit5ef8409700c0d2b85f4fe2f5d3b11ea51a18a355 (patch)
tree93d6c6a7133c28704207cec3b60a6d9cdec42424 /include
parentd0e9c40a5a292f909cc9a8cd3efb71be456a5e95 (diff)
move the precautionary timestamp bumping
Diffstat (limited to 'include')
-rw-r--r--include/rssfuncs.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/rssfuncs.php b/include/rssfuncs.php
index 2f570e37e..730adc664 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();