aboutsummaryrefslogtreecommitdiffstats
path: root/addon/facebook
diff options
context:
space:
mode:
Diffstat (limited to 'addon/facebook')
-rw-r--r--addon/facebook/facebook.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/addon/facebook/facebook.php b/addon/facebook/facebook.php
index 8999561c8..64ca9af56 100644
--- a/addon/facebook/facebook.php
+++ b/addon/facebook/facebook.php
@@ -291,8 +291,12 @@ function facebook_cron($a,$b) {
$last = get_config('facebook','last_poll');
+ $poll_interval = get_config('facebook','poll_interval');
+ if(! $poll_interval)
+ $poll_interval = 3600;
+
if($last) {
- $next = $last + 3600;
+ $next = $last + $poll_interval;
if($next > time())
return;
}