diff --git a/mail/inc/class.mail_ui.inc.php b/mail/inc/class.mail_ui.inc.php index ac53cf0468..5b1da19c5c 100644 --- a/mail/inc/class.mail_ui.inc.php +++ b/mail/inc/class.mail_ui.inc.php @@ -929,7 +929,7 @@ class mail_ui $refresh = true; break; case 'ham': - if (isset($this->mail_bo->icServer->acc_folder_ham) && !isset($this->mail_bo->icServer->acc_spam_api)) + if (isset($this->mail_bo->icServer->acc_folder_ham) && empty($this->mail_bo->icServer->acc_spam_api)) { $msg[] = $this->ajax_copyMessages($ham, array( 'all' => false, @@ -947,7 +947,7 @@ class mail_ui } break; } - if ($GLOBALS['egw_info']['apps']['stylite']) + if ($GLOBALS['egw_info']['apps']['stylite'] && $this->mail_bo->icServer->acc_spam_api) { stylite_mail_spamtitan::setActionItems($_action, $_items, array( 'userpwd' => $this->mail_bo->icServer->acc_imap_password,