summaryrefslogtreecommitdiff
path: root/it_html.class
diff options
context:
space:
mode:
authorChristian Schneider2007-11-23 13:08:17 +0000
committerChristian Schneider2007-11-23 13:08:17 +0000
commit7c9349e23f337e818c7f6fb922a54360515ac0d2 (patch)
treeb0c3e25500e989f9d409613fff66a01c067bdfd0 /it_html.class
parent0780b6b2ca8a9450c5e8038f889460ee45b6a039 (diff)
downloaditools-7c9349e23f337e818c7f6fb922a54360515ac0d2.tar.gz
itools-7c9349e23f337e818c7f6fb922a54360515ac0d2.tar.bz2
itools-7c9349e23f337e818c7f6fb922a54360515ac0d2.zip
Only split selected options on comma for multi-select
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)