summaryrefslogtreecommitdiffstats
path: root/system/helpers/form_helper.php
diff options
context:
space:
mode:
authorBrennan Thompson <brenjt@gmail.com>2013-10-22 02:27:11 +0200
committerBrennan Thompson <brenjt@gmail.com>2013-10-22 02:27:11 +0200
commit68a02a01a086bbb1b8128ea2744439de84873d11 (patch)
treec734ad47762b4b8a4de048ffb13c235ca9444681 /system/helpers/form_helper.php
parentd3b7e24b708623be425dc03c3bb429bf0e4741c8 (diff)
Removed extra from $name, since it does not follow the format of other form_ helpers. Form helpers use $extra as a string. On the form_input for example, the $extra is a string but placing extra in the first parameter results in an attribute on the resulting element called 'extra', whereas the drop down it does not. $extra is now passed along as works just as all other form_ methods do.
Diffstat (limited to 'system/helpers/form_helper.php')
-rw-r--r--system/helpers/form_helper.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/system/helpers/form_helper.php b/system/helpers/form_helper.php
index 0cc5bd157..4700da7d7 100644
--- a/system/helpers/form_helper.php
+++ b/system/helpers/form_helper.php
@@ -316,9 +316,8 @@ if ( ! function_exists('form_dropdown'))
{
isset($name['options']) OR $name['options'] = array();
isset($name['selected']) OR $name['selected'] = array();
- isset($name['extra']) OR $name['extra'] = array();
- return form_dropdown($name['name'], $name['options'], $name['selected'], $name['extra']);
+ return form_dropdown($name['name'], $name['options'], $name['selected'], $extra);
}
is_array($selected) OR $selected = array($selected);