From 376be571baffb10c88c15e8b7639a757a47287ff Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Tue, 18 Dec 2018 14:27:25 +0100 Subject: [PATCH] Fix php warning when there's no s/mime recipientsCerts --- api/src/Mailer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Mailer.php b/api/src/Mailer.php index 9262201f14..d002c5d1cd 100644 --- a/api/src/Mailer.php +++ b/api/src/Mailer.php @@ -1175,7 +1175,7 @@ class Mailer extends Horde_Mime_Mail $encrypt_params = array( 'type' => 'message', 'pubkey' => array_merge( - $params['recipientsCerts'], + (array)$params['recipientsCerts'], array($this->account->acc_smime_username => $params['senderPubKey']) ) );