diff options
author | nihaopaul <nihaopaul@gmail.com> | 2012-03-12 10:06:42 +0100 |
---|---|---|
committer | nihaopaul <nihaopaul@gmail.com> | 2012-03-12 10:06:42 +0100 |
commit | b6a84432400736bb7f7b835739b1ffff252f92cd (patch) | |
tree | 28942f0d892cef902949e183fa32dfaf43f9de41 /system/helpers | |
parent | 8abb67c6a941ea87156f2afe976724ae1cf88c03 (diff) |
test if isset(['name']) is actually set instead of assuming it to be
Diffstat (limited to 'system/helpers')
-rw-r--r-- | system/helpers/form_helper.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/helpers/form_helper.php b/system/helpers/form_helper.php index 82a4b9f57..df28d88eb 100644 --- a/system/helpers/form_helper.php +++ b/system/helpers/form_helper.php @@ -315,7 +315,7 @@ if ( ! function_exists('form_dropdown')) function form_dropdown($name = '', $options = array(), $selected = array(), $extra = '') { // If name is really an array then we'll call the function again using the array - if (is_array($name)) + if (is_array($name) && isset($name['name'])) { if ( ! isset($name['options'])) |