summaryrefslogtreecommitdiff
path: root/html.class
diff options
context:
space:
mode:
authorChristian Schneider2006-12-26 14:35:16 +0000
committerChristian Schneider2006-12-26 14:35:16 +0000
commit3ab5a20ae3a9b62c1094396e8fa8217171b12f99 (patch)
tree2bd5ca54151331f0527f799d6f685ddc2efdcfea /html.class
parentad91e2b50a2b5d2fdc704dd3b594f01386b460fd (diff)
downloaditools-3ab5a20ae3a9b62c1094396e8fa8217171b12f99.tar.gz
itools-3ab5a20ae3a9b62c1094396e8fa8217171b12f99.tar.bz2
itools-3ab5a20ae3a9b62c1094396e8fa8217171b12f99.zip
Make itools fully old syntax again
Diffstat (limited to 'html.class')
-rw-r--r--html.class6
1 files changed, 3 insertions, 3 deletions
diff --git a/html.class b/html.class
index 8bde4dd..9fa4147 100644
--- a/html.class
+++ b/html.class
@@ -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);