From 15f405bd9ca6b1cb766a37d93ee655d835c266e2 Mon Sep 17 00:00:00 2001 From: ralf Date: Wed, 23 Oct 2024 16:20:27 +0200 Subject: [PATCH] need to check both, mail-account and overwrites --- mail/inc/class.mail_ui.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mail/inc/class.mail_ui.inc.php b/mail/inc/class.mail_ui.inc.php index b69a7573f1..e99a49c933 100644 --- a/mail/inc/class.mail_ui.inc.php +++ b/mail/inc/class.mail_ui.inc.php @@ -1073,9 +1073,9 @@ class mail_ui ) ) ); - $params = Mail\Account::read($this->mail_bo->profileID)->getParamOverwrites(); + $account = Mail\Account::read($this->mail_bo->profileID); // spamTitan actions - if ($params['acc_spam_api'] && class_exists('stylite_mail_spamtitan')) + if (($account->acc_spam_api || !empty($account->getParamOverwrites()['acc_spam_api'])) && class_exists('stylite_mail_spamtitan')) { $actions['spamfilter']['children'] = array_merge($actions['spamfilter']['children'], stylite_mail_spamtitan::getActions()); }