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