diff options
author | nihaopaul <nihaopaul@gmail.com> | 2012-03-12 09:57:44 +0100 |
---|---|---|
committer | nihaopaul <nihaopaul@gmail.com> | 2012-03-12 09:57:44 +0100 |
commit | 4252f8d2e72ed25883682e4a7e2c7a221a743dc8 (patch) | |
tree | d88b47b9e67e2ec13a81107ced6cf12898800ad9 /system/helpers | |
parent | 10ecad5238fe1a408e9ecbe6ed3b37c4f3d33863 (diff) |
form_dropdown() will now also take an array for unity with other form helpers., false => FALSE and the options check fixed
Diffstat (limited to 'system/helpers')
-rw-r--r-- | system/helpers/form_helper.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/system/helpers/form_helper.php b/system/helpers/form_helper.php index ab3a12961..8ccab99a2 100644 --- a/system/helpers/form_helper.php +++ b/system/helpers/form_helper.php @@ -319,15 +319,15 @@ if ( ! function_exists('form_dropdown')) { if ( ! isset($name['options'])) { - $name['selected'] = false; + $name['options'] = FALSE; } if ( ! isset($name['selected'])) { - $name['selected'] = false; + $name['selected'] = FALSE; } if ( ! isset($name['extra'])) { - $name['extra'] = false; + $name['extra'] = FALSE; } return form_dropdown($name['name'], $name['options'], $name['selected'], $name['extra']); } |