Closed (fixed)
Project:
Subscribed
Version:
6.x-1.1-beta2
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Oct 2010 at 00:03 UTC
Updated:
8 Jun 2012 at 02:11 UTC
If you click Preview on the page admin/subscribed/enewsletter, you get:
warning: Invalid argument supplied for foreach() in /home/[redacted]/public_html/includes/form.inc on line 1211.
The problem is in system.module, line 1090
$form['recipients']['roles'] = array(
'#type' => 'checkboxes',
'#title' => t('Roles'),
// '#default_value' => $roles_selected,
'#options' => $roles,
);
The variable $roles_selected does not appear to be defined anywhere. Comment out the line as indicated and the error disappears.
Comments
Comment #1
DrewMathers commentedCorrection: The above code is from subscribed.module, line 1090, not system.module
Comment #2
robert castelo commented