Commit 889c1e8c authored by metzlerd's avatar metzlerd
Browse files

Fixed critical error in parameter form building.

parent 7fa29e08
...@@ -594,7 +594,7 @@ function forena_parameter_form($formid, &$form_state, $parameters, $attributes= ...@@ -594,7 +594,7 @@ function forena_parameter_form($formid, &$form_state, $parameters, $attributes=
break; break;
default: default:
$type = 'textfield'; $type = 'textfield';
$list = ''; $list = array();
} }
if (isset($menu_parms[$id]) && $type=='textfield') { if (isset($menu_parms[$id]) && $type=='textfield') {
...@@ -632,7 +632,7 @@ function forena_parameter_form($formid, &$form_state, $parameters, $attributes= ...@@ -632,7 +632,7 @@ function forena_parameter_form($formid, &$form_state, $parameters, $attributes=
//if $list is not empty then push options //if $list is not empty then push options
//onto the array. options will cause an error for //onto the array. options will cause an error for
//textfield elements. //textfield elements.
if ($list || $type = 'select' || $type='radios') { if ($list || $type == 'select' || $type =='radios') {
$form['params'][$id]['#options'] = $list; $form['params'][$id]['#options'] = $list;
$form['params'][$id]['#multiple'] = $multiselect; $form['params'][$id]['#multiple'] = $multiselect;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment