summaryrefslogtreecommitdiffstats
path: root/system/helpers
diff options
context:
space:
mode:
authorBrennan Thompson <brenjt@gmail.com>2014-02-14 20:17:48 +0100
committerBrennan Thompson <brenjt@gmail.com>2014-02-14 20:17:48 +0100
commit06a0d625beed35d23ede1b599e4ef532a0f819f9 (patch)
tree8f9b037f470cfd562e06915bc526c56f52b92afb /system/helpers
parent40cd60024d4b18fd26a6cc17ed37cbcc403569e8 (diff)
Fix for selected being NULL from set_value
Diffstat (limited to 'system/helpers')
-rw-r--r--system/helpers/form_helper.php2
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