From 5615fbf15e0c2382fc22b1b79752a11c228bf424 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 24 Sep 2018 15:00:17 +0200 Subject: [PATCH] Fix commit 4bd103fd7d0af67da4afe70188bb62831d84e8ad --- api/src/Mail.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/Mail.php b/api/src/Mail.php index 2ff1846576..1c54a54559 100644 --- a/api/src/Mail.php +++ b/api/src/Mail.php @@ -7527,8 +7527,8 @@ class Mail } $AB_bo = new \addressbook_bo(); - $certkey = trim($AB_bo->get_smime_keys($cert->email)); - if (!is_array($certkey) || strcasecmp($certkey[$cert->email], $cert->cert) != 0) $metadata['addtocontact'] = true; + $certkey = $AB_bo->get_smime_keys($cert->email); + if (!is_array($certkey) || strcasecmp(trim($certkey[$cert->email]), trim($cert->cert)) != 0) $metadata['addtocontact'] = true; } else // only encrypted message {