summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/functions.php b/functions.php
index 2085d6067..410c76eac 100644
--- a/functions.php
+++ b/functions.php
@@ -91,10 +91,8 @@
purge_old_posts($link);
}
- if (get_pref($link, 'DAEMON_REFRESH_ONLY', $user_id)) {
- if (!$_GET["daemon"]) {
- return;
- }
+ if (DAEMON_REFRESH_ONLY && !$_GET["daemon"]) {
+ return;
}
db_query($link, "BEGIN");