summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabriel Carleton-Barnes2013-01-31 01:21:07 (GMT)
committer Gabriel Carleton-Barnes2013-01-31 01:21:07 (GMT)
commit35f3bee21a9d3b462f19bbdc77fabead9b6b22a6 (patch)
tree2613b4f063d924eb12d5df2bb4e9ed9fe49ea1e7
parent52c4f6c5c579da4e61655d9e7bffae7bdd8b12dc (diff)
Fix for accidental subscriptions getting triggered on account saves.
-rw-r--r--modules/mailchimp_lists/mailchimp_lists.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mailchimp_lists/mailchimp_lists.module b/modules/mailchimp_lists/mailchimp_lists.module
index bd63e20..d077ed9 100644
--- a/modules/mailchimp_lists/mailchimp_lists.module
+++ b/modules/mailchimp_lists/mailchimp_lists.module
@@ -387,7 +387,7 @@ function mailchimp_lists_user_sync($account, $old_email = '', $new_email = '', $
if (!empty($old_email) && mailchimp_is_subscribed($list->mc_list_id, $old_email)) {
mailchimp_update_user($list, $old_email, $mergevars, FALSE, $mcapi);
}
- else {
+ else if ($list->list_type == MAILCHIMP_LISTTYPE_REQUIRED) {
mailchimp_subscribe_user($list, $account->mail, $mergevars, FALSE, $mcapi);
}
}