Prevent sending stats newsletter if tracking is disabled

[MAILPOET-1571]
This commit is contained in:
Pavel Dohnal
2019-01-22 10:47:10 +01:00
parent 627088e43d
commit e76f8d5159
2 changed files with 13 additions and 0 deletions

View File

@ -60,6 +60,9 @@ class Scheduler {
if(empty(trim($settings['address']))) {
return true;
}
if(!(bool)Setting::getValue('tracking.enabled')) {
return true;
}
return !(bool)$settings['enabled'];
}