summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Metzler2013-05-28 22:46:16 (GMT)
committer David Metzler2013-05-28 22:46:16 (GMT)
commit889c1e8c8e431eb9a2adfaa264b5af9afe3251a2 (patch)
tree3bc1ea3b7b5dc67e2f102113c155d8697d4ccde8
parent7fa29e081703692ec63813ddc3f9bb1eedc81c49 (diff)
Fixed critical error in parameter form building. 7.x-3.4
-rwxr-xr-xforena.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/forena.module b/forena.module
index ae37f1e..97b1f5b 100755
--- a/forena.module
+++ b/forena.module
@@ -594,7 +594,7 @@ function forena_parameter_form($formid, &$form_state, $parameters, $attributes=
break;
default:
$type = 'textfield';
- $list = '';
+ $list = array();
}
if (isset($menu_parms[$id]) && $type=='textfield') {
@@ -632,7 +632,7 @@ function forena_parameter_form($formid, &$form_state, $parameters, $attributes=
//if $list is not empty then push options
//onto the array. options will cause an error for
//textfield elements.
- if ($list || $type = 'select' || $type='radios') {
+ if ($list || $type == 'select' || $type =='radios') {
$form['params'][$id]['#options'] = $list;
$form['params'][$id]['#multiple'] = $multiselect;
}