When I enter the user registration part where I choose to list of sign should I mark this bug
"warning: Invalid argument supplied for foreach() in sites/all/modules/phplist/phplist.module on line 1246."
/**
* Generate a checkbox for each configured mailing list.
* Returns a 'checkboxes' form element.
*/
function phplist_subscribe_checkboxes($hide_one = true) {
global $user;
$lists = _phplist_get_lists($user);
$options = array();
$auto = 0;
foreach ($lists as $l) {(<--ERROR 1246)
$options[$l->lid] = $l->name;
if (count($options) == 1 && variable_get('phplist_autosubscribe_on_register', false)) {
$options[$l->lid] .= ' ('. t('Required') .')';
$auto = $l->lid;
}
}
Project: phplist Integration Module
Version: 6.x-1.x-dev