summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabriel Carleton-Barnes2013-01-31 01:23:25 (GMT)
committer Gabriel Carleton-Barnes2013-01-31 01:23:25 (GMT)
commitdf3e66a52b6bcfb271736c8ef88ec7648328b525 (patch)
tree8702620be09e63ceeb331cd161b2806917df5b24
parent35f3bee21a9d3b462f19bbdc77fabead9b6b22a6 (diff)
Fix for #1903630 where lists created in earlier releases were causing error messages to occur when rendering subscription blocks.
-rw-r--r--modules/mailchimp_lists/mailchimp_lists.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/mailchimp_lists/mailchimp_lists.module b/modules/mailchimp_lists/mailchimp_lists.module
index d077ed9..fc8dc84 100644
--- a/modules/mailchimp_lists/mailchimp_lists.module
+++ b/modules/mailchimp_lists/mailchimp_lists.module
@@ -463,8 +463,8 @@ function mailchimp_lists_auth_newsletter_form(&$form, $list, $account) {
if ($account && $account->uid > 0) {
$is_subscribed = mailchimp_is_subscribed($list->mc_list_id, $account->mail);
}
- else {
- $default_subscribed = $list->settings['default_register_form_optin'];
+ else if ($list->list_type == 'optional') {
+ $default_subscribed = !empty($list->settings['default_register_form_optin']);
}
// wrap in a div
$wrapper_key = 'mailchimp_' . $list->name;