MIN_UPDATE_INTERVAL -> DEFAULT_UPDATE_INTERVAL
This commit is contained in:
parent
4529197a2f
commit
7f2ee7952b
|
@ -30,8 +30,8 @@
|
||||||
// crafted SQL queries. This feature is highly experimental and
|
// crafted SQL queries. This feature is highly experimental and
|
||||||
// at this point not user friendly. Use with caution.
|
// at this point not user friendly. Use with caution.
|
||||||
|
|
||||||
define(MIN_UPDATE_INTERVAL, 30);
|
define(DEFAULT_UPDATE_INTERVAL, 30);
|
||||||
// min. interval between feed updates, minutes
|
// default interval between feed updates, minutes
|
||||||
|
|
||||||
define(DISPLAY_HEADER, true);
|
define(DISPLAY_HEADER, true);
|
||||||
// enable/disable the display of the header graphic
|
// enable/disable the display of the header graphic
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
while ($line = db_fetch_assoc($result)) {
|
while ($line = db_fetch_assoc($result)) {
|
||||||
$upd_intl = $line["update_interval"];
|
$upd_intl = $line["update_interval"];
|
||||||
|
|
||||||
if (!$upd_intl) $upd_intl = MIN_UPDATE_INTERVAL;
|
if (!$upd_intl || $upd_intl == 0) $upd_intl = DEFAULT_UPDATE_INTERVAL;
|
||||||
|
|
||||||
if (!$line["last_updated"] ||
|
if (!$line["last_updated"] ||
|
||||||
time() - strtotime($line["last_updated"]) > ($upd_intl * 60)) {
|
time() - strtotime($line["last_updated"]) > ($upd_intl * 60)) {
|
||||||
|
|
Loading…
Reference in New Issue