summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2008-01-18 15:39:23 +0100
committerDerek Allard <derek.allard@ellislab.com>2008-01-18 15:39:23 +0100
commitf8f05703f61689b4d0b432f12e36a27f15778458 (patch)
tree596d605530da1b94baba2879346a72a497683543 /system
parentf6cd45ccb9f8825eb44dd2fa736c7aa0082ff98c (diff)
added check for "multiple" attribute in form_dropdown() (bug# 3261)
Diffstat (limited to 'system')
-rw-r--r--system/helpers/form_helper.php3
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";