summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-10-28 10:38:36 +0100
committerAndrew Dolgov <[email protected]>2005-10-28 10:38:36 +0100
commitc5142ccae7e7c06bd3c2d66d30c769290b8e87e4 (patch)
treeb0f392520076ca10e29ed0c699193138701dedeb /functions.php
parentdcee8f6125caa07023aef73cadc620496ed25086 (diff)
fix DAEMON_REFRESH_ONLY handling
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/functions.php b/functions.php
index 9d0016c72..5057d23c4 100644
--- a/functions.php
+++ b/functions.php
@@ -22,8 +22,10 @@
if (WEB_DEMO_MODE) return;
- if (! ($_GET["daemon"] && DAEMON_REFRESH_ONLY)) {
- return;
+ if (DAEMON_REFRESH_ONLY) {
+ if (!$_GET["daemon"]) {
+ return;
+ }
}
db_query($link, "BEGIN");
@@ -39,7 +41,7 @@
if (!$line["last_updated"] ||
time() - strtotime($line["last_updated"]) > ($upd_intl * 60)) {
-
+
update_rss_feed($link, $line["feed_url"], $line["id"]);
}
}