Don't display inactive subscribers notice when time range changed

[MAILPOET-2088]
This commit is contained in:
Jan Jakeš
2019-05-31 15:27:33 +02:00
committed by M. Shull
parent 0bb18b62b2
commit 0e99d7982c

View File

@ -28,6 +28,12 @@ class InactiveSubscribersNotice {
return;
}
// don't display notice if user has changed the default inactive time range
$inactive_days = $this->settings->get('deactivate_subscriber_after_inactive_days');
if ($inactive_days !== SettingsController::DEFAULT_DEACTIVATE_SUBSCRIBER_AFTER_INACTIVE_DAYS) {
return;
}
$inactive_subscribers_count = Subscriber::getInactiveSubscribersCount();
if ($inactive_subscribers_count < self::MIN_INACTIVE_SUBSCRIBERS_COUNT) {
return;