]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/OnePoll.php
Merge remote-tracking branch 'upstream/develop' into develop
[friendica.git] / src / Worker / OnePoll.php
index c1fb5350c3dc7f91a955cc8b2585a33e4c9397b9..1190c77f5fc3e5a4db7fdeaed134accba2fc7896 100644 (file)
@@ -91,8 +91,8 @@ Class OnePoll
                $t = $contact['last-update'];
 
                if ($contact['subhub']) {
-                       $poll_interval = Config::get('system', 'pushpoll_frequency');
-                       $contact['priority'] = (($poll_interval !== false) ? intval($poll_interval) : 3);
+                       $poll_interval = Config::get('system', 'pushpoll_frequency', 3);
+                       $contact['priority'] = intval($poll_interval);
                        $hub_update = false;
 
                        if (datetime_convert('UTC', 'UTC', 'now') > datetime_convert('UTC', 'UTC', $t . " + 1 day")) {