Don't show poll frequency on auto adjust
authorMichael <heluecht@pirati.ca>
Mon, 17 Aug 2020 17:40:31 +0000 (17:40 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 17 Aug 2020 17:40:31 +0000 (17:40 +0000)
src/Module/Contact.php

index 6425df8..4a5aeef 100644 (file)
@@ -558,7 +558,7 @@ class Contact extends BaseModule
                        }
 
                        $poll_interval = null;
-                       if (in_array($contact['network'], [Protocol::FEED, Protocol::MAIL])) {
+                       if ((($contact['network'] == Protocol::FEED) && !DI::config()->get('system', 'adjust_poll_frequency')) || ($contact['network']== Protocol::MAIL)) {
                                $poll_interval = ContactSelector::pollInterval($contact['priority'], !$poll_enabled);
                        }