diff --git a/mail/inc/class.mail_ui.inc.php b/mail/inc/class.mail_ui.inc.php index 45e6e4f794..b69a7573f1 100644 --- a/mail/inc/class.mail_ui.inc.php +++ b/mail/inc/class.mail_ui.inc.php @@ -1073,9 +1073,9 @@ class mail_ui ) ) ); - $account = Mail\Account::read($this->mail_bo->profileID); + $params = Mail\Account::read($this->mail_bo->profileID)->getParamOverwrites(); // spamTitan actions - if ($account->acc_spam_api && class_exists('stylite_mail_spamtitan')) + if ($params['acc_spam_api'] && class_exists('stylite_mail_spamtitan')) { $actions['spamfilter']['children'] = array_merge($actions['spamfilter']['children'], stylite_mail_spamtitan::getActions()); }