diff options
-rw-r--r-- | system/helpers/form_helper.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/system/helpers/form_helper.php b/system/helpers/form_helper.php index c3a3ccb5b..a727f4715 100644 --- a/system/helpers/form_helper.php +++ b/system/helpers/form_helper.php @@ -231,7 +231,8 @@ function form_dropdown($name = '', $options = array(), $selected = array(), $ext }
if ($extra != '') $extra = ' '.$extra;
- $multiple = (count($selected) > 1) ? ' multiple="multiple"' : '';
+
+ $multiple = (count($selected) > 1 && strpos($extra, 'multiple') === FALSE) ? ' multiple="multiple"' : '';
$form = '<select name="'.$name.'"'.$extra.$multiple.">\n";
|