diff --git a/modules/sendmail/Controllers/ReceiveMessageExchangeController.php b/modules/sendmail/Controllers/ReceiveMessageExchangeController.php index 64ade710443d4a0c30576a9c3cfc5849e4d9d47a..d1b50b88a1b4a4af5c7e35bc5b48cb5c2eaad858 100755 --- a/modules/sendmail/Controllers/ReceiveMessageExchangeController.php +++ b/modules/sendmail/Controllers/ReceiveMessageExchangeController.php @@ -295,8 +295,8 @@ class ReceiveMessageExchangeController 'limit' => 1 ]); if (!empty($contactAlreadyCreated)) { - $contact['contactId'] = $contactAlreadyCreated['contact_id']; - $contact['addressId'] = $contactAlreadyCreated['ca_id']; + $contact['contactId'] = $contactAlreadyCreated[0]['contact_id']; + $contact['addressId'] = $contactAlreadyCreated[0]['ca_id']; } else { $contact = ContactModel::CreateContactM2M(['data' => $aDataContact, 'contactCommunication' => $transferringAgencyMetadata->Communication[0]->value]); }