Skip to content

Commit

Permalink
Allow more possibilities for mail chimp status
Browse files Browse the repository at this point in the history
  • Loading branch information
billtomczak committed Sep 12, 2019
1 parent 9f6d84a commit ec4d465
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/admin/library/Free/MailingList/MailChimp.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function onAfterStore($result)
$result = array('status' => 'unsubscribed');
}

if ($result['status'] === 'unsubscribed') {
if ($result['status'] !== 'subscribed') {
// The email is not subscribed. Let's subscribe it.
$mc->post("lists/{$listId}/members/", array(
'email_address' => $email,
Expand Down

0 comments on commit ec4d465

Please sign in to comment.