summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmad Anbar <aanbar@gmail.com>2013-10-04 01:45:28 +0200
committerAhmad Anbar <aanbar@gmail.com>2013-10-04 01:45:28 +0200
commit8e7cc7a18086ad32c8e13525b643aadde054bf40 (patch)
tree9757ed80ee0de9a81206bc22c0840a2d2c60b819
parent6eb6e8a12f477b9e10de9b907310f53a17d63358 (diff)
parse $extra attributes in form_dropdown.
-rw-r--r--system/helpers/form_helper.php7
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"' : '';