diff options
author | Andrey Andreev <narf@devilix.net> | 2013-10-04 12:49:43 +0200 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2013-10-04 12:49:43 +0200 |
commit | f040d8a4bd233c63f0e6057711a6c2bcaba1a732 (patch) | |
tree | 9757ed80ee0de9a81206bc22c0840a2d2c60b819 /system/helpers/form_helper.php | |
parent | 6eb6e8a12f477b9e10de9b907310f53a17d63358 (diff) | |
parent | 8e7cc7a18086ad32c8e13525b643aadde054bf40 (diff) |
Merge pull request #2671 from aanbar/develop
parse $extra attributes in form_dropdown.
Diffstat (limited to 'system/helpers/form_helper.php')
-rw-r--r-- | system/helpers/form_helper.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/system/helpers/form_helper.php b/system/helpers/form_helper.php index 0cc5bd157..85f1f4e01 100644 --- a/system/helpers/form_helper.php +++ b/system/helpers/form_helper.php @@ -328,11 +328,8 @@ if ( ! function_exists('form_dropdown')) { $selected = array($_POST[$name]); } - - if ($extra != '') - { - $extra = ' '.$extra; - } + + $extra = _attributes_to_string($extra); $multiple = (count($selected) > 1 && strpos($extra, 'multiple') === FALSE) ? ' multiple="multiple"' : ''; |