Do not try to get mailbody if no spamTitan feature is configured

This commit is contained in:
Hadi Nategh 2017-06-29 13:31:32 +02:00
parent 3af480be9d
commit 0f89feec3b

View File

@ -914,7 +914,7 @@ class mail_ui
// Current Mailbox
$mailbox = $id_parts['folder'];
$messages[] = $params['row_id'];
if ($GLOBALS['egw_info']['apps']['stylite'])
if ($GLOBALS['egw_info']['apps']['stylite'] && $this->mail_bo->icServer->acc_spam_api)
{
$params['mailbody'] = $this->get_load_email_data($params['uid'], null, $mailbox);
}