respect $fetch in update_all_feeds (forceUpdateAllFeeds handling)

This commit is contained in:
Andrew Dolgov 2005-11-19 06:09:19 +01:00
parent 5859be022e
commit 93d40f50ba

View file

@ -100,8 +100,8 @@
$upd_intl = get_pref($link, 'DEFAULT_UPDATE_INTERVAL');
}
if (!$line["last_updated"] ||
time() - strtotime($line["last_updated"]) > ($upd_intl * 60)) {
if ($fetch || (!$line["last_updated"] ||
time() - strtotime($line["last_updated"]) > ($upd_intl * 60))) {
update_rss_feed($link, $line["feed_url"], $line["id"]);
}