diff options
Diffstat (limited to 'system')
-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 54e2401be..31c274ced 100644 --- a/system/helpers/form_helper.php +++ b/system/helpers/form_helper.php @@ -314,7 +314,7 @@ if ( ! function_exists('form_dropdown')) $name = ! is_array($data) ? $data : ''; $defaults = array('name' => ( $name)); - if ( is_array($data) && isset($data['selected'])) + if ( is_array($data) AND isset($data['selected']) AND $data['selected'] !== NULL) { $selected = $data['selected']; unset($data['selected']); // selects don't have a selected attribute |