From e8486cfebd64a9cc8b34530abf0f38900321f571 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 23 Apr 2018 20:11:47 +0200 Subject: [PATCH] fix PHP Fatal error: Uncaught TypeError: Argument 3 passed to stylite_mail_spamtitan::sync_aliases() must be of the type array, null given --- 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 3d909d0303..44add9eb43 100644 --- a/mail/inc/class.mail_ui.inc.php +++ b/mail/inc/class.mail_ui.inc.php @@ -956,7 +956,7 @@ class mail_ui { $data = Api\Mail\Account::read($this->mail_bo->profileID)->smtpServer()->getUserData($GLOBALS['egw_info']['user']['account_id']); if (($m = stylite_mail_spamtitan::setActionItems('sync_aliases', - array(array_merge((array)$data['mailLocalAddress'], $data['mailAlternateAddress'])), array( + array(array_merge((array)$data['mailLocalAddress'], (array)$data['mailAlternateAddress'])), array( 'userpwd' => $this->mail_bo->icServer->acc_imap_password, 'user' => $this->mail_bo->icServer->acc_imap_username, 'api_url' => $this->mail_bo->icServer->acc_spam_api