"Subscriptions" displayed on registration form even if there are no public lists

pentike - March 9, 2009 - 20:28
Project:Mailout
Version:5.x-1.0-rc2
Component:User interface
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review
Description

The Subscriptions form element is displayed even if there is nothing to subscribe to. The solution is simple, add an is_array() check, as below:

125 if(is_array($options)) {

126 $form['mailout'] = array(
127 '#type' => 'checkboxes',
128 '#options' => $options,
129 '#title' => t('Subscriptions'),
130 );

131 }

Regards,
Gábor

 
 

Drupal is a registered trademark of Dries Buytaert.