]> git.wh0rd.org Git - tt-rss.git/commitdiff
move the precautionary timestamp bumping
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 1 May 2013 22:20:34 +0000 (02:20 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 1 May 2013 22:20:34 +0000 (02:20 +0400)
include/rssfuncs.php

index 2f570e37e4b4120b2b188298c877cea9b7961e9d..730adc6648e2b6523e299efd977777c00871a0fa 100644 (file)
                        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"));
 
                        $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();