diff --git a/src/Worker/Cron.php b/src/Worker/Cron.php index 89a2b7373d..d7cd7c0546 100644 --- a/src/Worker/Cron.php +++ b/src/Worker/Cron.php @@ -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;