From 7c9349e23f337e818c7f6fb922a54360515ac0d2 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Fri, 23 Nov 2007 13:08:17 +0000 Subject: Only split selected options on comma for multi-select --- it_html.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it_html.class') 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) -- cgit v1.2.3