Skip to content

Commit 5f552c5

Browse files
committed
fix: mailchimp update contact issue fixed
1 parent 328db87 commit 5f552c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/Actions/MailChimp/RecordApiHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function execute($listId, $module, $tags, $defaultConf, $fieldValues, $fi
8383
$contactEmail = $fieldData['email_address'];
8484
$foundContact = $this->existContact($listId, $contactEmail);
8585

86-
if (!empty($actions->update) && \count($foundContact->exact_matches->members)) {
86+
if (!empty($actions->update) && !empty($foundContact->exact_matches->members)) {
8787
$contactId = $foundContact->exact_matches->members[0]->id;
8888
$fieldData['status'] = $foundContact->exact_matches->members[0]->status;
8989
$recordApiResponse = $this->updateRecord($listId, $contactId, wp_json_encode($fieldData));

0 commit comments

Comments
 (0)