fix negative update interval handling
This commit is contained in:
parent
b8a6ff3044
commit
c1e202b79c
|
@ -125,6 +125,11 @@
|
|||
$upd_intl = get_pref($link, 'DEFAULT_UPDATE_INTERVAL', $user_id);
|
||||
}
|
||||
|
||||
if ($upd_intl < 0) {
|
||||
// Updates for this feed are disabled
|
||||
continue;
|
||||
}
|
||||
|
||||
if ($fetch || (!$line["last_updated"] ||
|
||||
time() - strtotime($line["last_updated"]) > ($upd_intl * 60))) {
|
||||
|
||||
|
|
|
@ -60,8 +60,13 @@
|
|||
$upd_intl = get_pref($link, 'DEFAULT_UPDATE_INTERVAL', $user_id);
|
||||
}
|
||||
|
||||
# printf("%d ? %d\n", time() - strtotime($line["last_updated"]) > $upd_intl*60,
|
||||
# $upd_intl*60);
|
||||
if ($upd_intl < 0) {
|
||||
print "Updates disabled.\n";
|
||||
continue;
|
||||
}
|
||||
|
||||
printf("%d ? %d\n", time() - strtotime($line["last_updated"]) > $upd_intl*60,
|
||||
$upd_intl*60);
|
||||
|
||||
if (!$line["last_updated"] ||
|
||||
time() - strtotime($line["last_updated"]) > ($upd_intl * 60)) {
|
||||
|
|
Loading…
Reference in New Issue