Skip to content

Commit

Permalink
Update SmartEmailing.php
Browse files Browse the repository at this point in the history
  • Loading branch information
arzzen authored Jan 31, 2022
1 parent 132dfeb commit c90d29e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/SmartEmailing.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,17 +208,17 @@ public function importContact($email, $name = NULL, $surname = NULL, $language =
{
$contact = [
'emailaddress' => $email,
'name' => $name,
'surname' => $surname,
'language' => $language
];

if (is_array($contactLists)) {
$contact['contactlists'] = [];
foreach ($contactLists as $id => $status) {
$contact['contactlists'][] = [
'id' => $id,
'status' => $status,
'name' => $name,
'surname' => $surname,
'language' => $language
'status' => $status
];
}
}
Expand Down

0 comments on commit c90d29e

Please sign in to comment.