commit | 8e7cc7a18086ad32c8e13525b643aadde054bf40 | [log] [tgz] |
---|---|---|
author | Ahmad Anbar <aanbar@gmail.com> | Fri Oct 04 02:45:28 2013 +0300 |
committer | Ahmad Anbar <aanbar@gmail.com> | Fri Oct 04 02:45:28 2013 +0300 |
tree | 9757ed80ee0de9a81206bc22c0840a2d2c60b819 | |
parent | 6eb6e8a12f477b9e10de9b907310f53a17d63358 [diff] [blame] |
parse $extra attributes in form_dropdown.
diff --git a/system/helpers/form_helper.php b/system/helpers/form_helper.php index 0cc5bd1..85f1f4e 100644 --- a/system/helpers/form_helper.php +++ b/system/helpers/form_helper.php
@@ -328,11 +328,8 @@ { $selected = array($_POST[$name]); } - - if ($extra != '') - { - $extra = ' '.$extra; - } + + $extra = _attributes_to_string($extra); $multiple = (count($selected) > 1 && strpos($extra, 'multiple') === FALSE) ? ' multiple="multiple"' : '';