Fix parameter order
This commit is contained in:
parent
ec35e2827b
commit
af47a9f36c
1 changed files with 1 additions and 1 deletions
|
@ -220,7 +220,7 @@ class Cron
|
||||||
$ratings = [0, 3, 7, 8, 9, 10];
|
$ratings = [0, 3, 7, 8, 9, 10];
|
||||||
if (DI::config()->get('system', 'adjust_poll_frequency') && ($contact['network'] == Protocol::FEED)) {
|
if (DI::config()->get('system', 'adjust_poll_frequency') && ($contact['network'] == Protocol::FEED)) {
|
||||||
$rating = $contact['rating'];
|
$rating = $contact['rating'];
|
||||||
} elseif (array_key_exists($ratings, $contact['priority'])) {
|
} elseif (array_key_exists($contact['priority'], $ratings)) {
|
||||||
$rating = $ratings[$contact['priority']];
|
$rating = $ratings[$contact['priority']];
|
||||||
} else {
|
} else {
|
||||||
$rating = -1;
|
$rating = -1;
|
||||||
|
|
Loading…
Reference in a new issue