Skip to content
Snippets Groups Projects
Commit 726a49ad authored by Lev Tsypin's avatar Lev Tsypin
Browse files

Moving definitions from mailchimp.module and some defensive code.

parent 1927adec
No related branches found
Tags 8.x-2.0-alpha1
No related merge requests found
<?php
/**
* @file
* Mailchimp lists module.
*/
define('MAILCHIMP_LISTTYPE_REQUIRED', 'required');
define('MAILCHIMP_LISTTYPE_OPTIONAL', 'optional');
define('MAILCHIMP_LISTTYPE_ANONYMOUS', 'anonymous');
define('MAILCHIMP_QUEUE_CRON', 'mailchimp_cron');
module_load_include('inc', 'mailchimp_lists', 'mailchimp_lists.entity');
......@@ -478,7 +487,7 @@ function mailchimp_lists_get_available_lists($account = NULL, $list_type = MAILC
if (isset($list->settings['roles'][$rid])) {
if (!empty($conditions)) {
foreach($conditions as $key => $condition) {
if ($list->settings[$key] == $condition) {
if (isset($list->settings[$key]) && $list->settings[$key] == $condition) {
$user_lists[] = $list;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment