diff options
Diffstat (limited to 'html.class')
-rw-r--r-- | html.class | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -320,11 +320,11 @@ function select($tags, $options, $selected = null) { $grouphtml = ""; foreach($option as $optval => $opt) - $grouphtml .= $this->tag('option', 'value' => $optval, 'selected' => isset($selected) ? $optval == $selected : false, it_html::Q($opt)); - $html .= $this->tag('optgroup', 'label' => $value, $grouphtml); + $grouphtml .= $this->tag('option', array('value' => $optval, 'selected' => isset($selected) ? $optval == $selected : false), it_html::Q($opt)); + $html .= $this->tag('optgroup', array('label' => $value), $grouphtml); } else - $html .= $this->tag('option', 'value' => $value, 'selected' => isset($selected) ? $value == $selected : false, 'disabled' => $option === "", (trim($option) === "") ? " " : it_html::Q($option)); + $html .= $this->tag('option', array('value' => $value, 'selected' => isset($selected) ? $value == $selected : false, 'disabled' => $option === ""), (trim($option) === "") ? " " : it_html::Q($option)); } return $this->tag('select', $tags, $html); |