mirror of
https://github.com/friendica/friendica
synced 2025-04-27 13:50:12 +00:00
Use default value
use the default value parameter correctly!
This commit is contained in:
parent
3e5a518591
commit
71911a6989
2 changed files with 6 additions and 8 deletions
|
@ -91,8 +91,8 @@ Class OnePoll
|
|||
$t = $contact['last-update'];
|
||||
|
||||
if ($contact['subhub']) {
|
||||
$poll_interval = Config::get('system', 'pushpoll_frequency');
|
||||
$contact['priority'] = ((!is_null($poll_interval)) ? 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")) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue