fix error when downgrading from EPL

This commit is contained in:
ralf 2022-09-08 18:42:46 +02:00
parent 4e0bb13571
commit 3fdad7c160

View File

@ -1060,7 +1060,7 @@ class mail_ui
);
$account = Mail\Account::read($this->mail_bo->profileID);
// spamTitan actions
if ($account->acc_spam_api)
if ($account->acc_spam_api && class_exists('stylite_mail_spamtitan'))
{
$actions['spamfilter']['children'] = array_merge($actions['spamfilter']['children'], stylite_mail_spamtitan::getActions());
}