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 1da1ac2fd8
commit 02cd6ad719

View File

@ -922,7 +922,7 @@ class mail_ui
// Current Mailbox // Current Mailbox
$mailbox = $id_parts['folder']; $mailbox = $id_parts['folder'];
$messages[] = $params['row_id']; $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); $params['mailbody'] = $this->get_load_email_data($params['uid'], null, $mailbox);
} }