From 68a02a01a086bbb1b8128ea2744439de84873d11 Mon Sep 17 00:00:00 2001 From: Brennan Thompson Date: Mon, 21 Oct 2013 18:27:11 -0600 Subject: 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. --- system/helpers/form_helper.php | 3 +-- 1 file changed, 1 insertion(+), 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); -- cgit v1.2.3-24-g4f1b