From af47a9f36c60851f8b2b7262c8cf169a21f006c9 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 17 Aug 2020 08:55:20 +0000 Subject: [PATCH] Fix parameter order --- src/Worker/Cron.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;