summaryrefslogtreecommitdiff
path: root/it_html.class
diff options
context:
space:
mode:
Diffstat (limited to 'it_html.class')
-rw-r--r--it_html.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_html.class b/it_html.class
index f7bff0e..35eb273 100644
--- a/it_html.class
+++ b/it_html.class
@@ -347,7 +347,7 @@ function select($tags, $options, $selected = null)
}
}
- $selected = (isset($selected) && !is_array($selected)) ? explode(',', $selected) : (array)$selected;
+ $selected = ($tags['multiple'] && is_string($selected)) ? explode(',', $selected) : (array)$selected;
$html = "";
foreach($options as $value => $option)