diff --git a/lam/lib/html.inc b/lam/lib/html.inc index 8f94f1ee..a1f513f7 100644 --- a/lam/lib/html.inc +++ b/lam/lib/html.inc @@ -1130,7 +1130,7 @@ class htmlRadio extends htmlElement { * * @param String $name element name * @param array $elements list of elements array(label => value) - * @param array $selectedElement value of selected element (optional, default none) + * @param String $selectedElement value of selected element (optional, default none) */ function __construct($name, $elements, $selectedElement = null) { $this->name = htmlspecialchars($name); @@ -1206,7 +1206,7 @@ class htmlTableExtendedRadio extends htmlRadio { * @param String $label descriptive label * @param String $name element name * @param array $elements list of elements array(label => value) - * @param array $selectedElement value of selected element (optional, default none) + * @param String $selectedElement value of selected element (optional, default none) * @param String $helpID help ID */ function __construct($label, $name, $elements, $selectedElement = null, $helpID = null) { @@ -1227,14 +1227,16 @@ class htmlTableExtendedRadio extends htmlRadio { * @return array List of input field names and their type (name => type) */ function generateHTML($module, $input, $values, $restricted, &$tabindex, $scope) { - echo '
'; - echo $this->label; - echo '
'; - echo "\n\n\n"; + if ($this->label != null) { + echo '
'; + echo $this->label; + echo '
'; + echo "\n\n\n"; + } $return = parent::generateHTML($module, $input, $values, $restricted, $tabindex, $scope); // print help link if ($this->helpID != null) { - echo "\n\n\n"; + echo "\n\n\n"; $helpLink = new htmlHelpLink($this->helpID); $helpLink->generateHTML($module, $input, $values, $restricted, $tabindex, $scope); }