diff --git a/lam/lib/modules.inc b/lam/lib/modules.inc index 732196b4..bd38cc82 100644 --- a/lam/lib/modules.inc +++ b/lam/lib/modules.inc @@ -707,7 +707,15 @@ function parseHtml($module, $input, $values, $restricted, &$tabindex, $scope) { return $input->generateHTML($module, $input, $values, $restricted, $tabindex, $scope); } $ret = array(); - if (is_array($input)) { + if (is_array($input) && (sizeof($input) > 0)) { + // check for array of metaHTML objects + if ($input[0] instanceof htmlElement) { + $return = array(); + for ($i = 0; $i < sizeof($input); $i++) { + $return = array_merge($return, $input[$i]->generateHTML($module, $input, $values, $restricted, $tabindex, $scope)); + } + return $return; + } echo "