fix error when downgrading from EPL

This commit is contained in:
ralf 2022-09-08 18:42:46 +02:00
parent d0100cd7a1
commit 97699d90a2

View File

@ -1058,7 +1058,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());
}