From 82f0bbc0cae801ce80a7a6f57080b97184661f11 Mon Sep 17 00:00:00 2001 From: ralf Date: Wed, 23 Oct 2024 15:45:44 +0200 Subject: [PATCH] consider overwrites, when checking if SpamTitan API is available --- 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 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()); }