From 02cd6ad719f486eed3aefd19d9ca79bab4271a8b Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 29 Jun 2017 13:31:32 +0200 Subject: [PATCH] Do not try to get mailbody if no spamTitan feature is configured --- mail/inc/class.mail_ui.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail/inc/class.mail_ui.inc.php b/mail/inc/class.mail_ui.inc.php index 0e8c2bb9b6..74db7a71b4 100644 --- a/mail/inc/class.mail_ui.inc.php +++ b/mail/inc/class.mail_ui.inc.php @@ -922,7 +922,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); }