diff options
author | Derek Allard <derek.allard@ellislab.com> | 2008-01-18 15:39:23 +0100 |
---|---|---|
committer | Derek Allard <derek.allard@ellislab.com> | 2008-01-18 15:39:23 +0100 |
commit | f8f05703f61689b4d0b432f12e36a27f15778458 (patch) | |
tree | 596d605530da1b94baba2879346a72a497683543 | |
parent | f6cd45ccb9f8825eb44dd2fa736c7aa0082ff98c (diff) |
added check for "multiple" attribute in form_dropdown() (bug# 3261)
-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";
|