summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authornihaopaul <nihaopaul@gmail.com>2012-03-12 10:00:32 +0100
committernihaopaul <nihaopaul@gmail.com>2012-03-12 10:00:32 +0100
commit8abb67c6a941ea87156f2afe976724ae1cf88c03 (patch)
tree7b48c99d41944e11677b7da5c4faf1fd9d6ff6b3 /system
parent4252f8d2e72ed25883682e4a7e2c7a221a743dc8 (diff)
code readability improvements
Diffstat (limited to 'system')
-rw-r--r--system/helpers/form_helper.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/system/helpers/form_helper.php b/system/helpers/form_helper.php
index 8ccab99a2..82a4b9f57 100644
--- a/system/helpers/form_helper.php
+++ b/system/helpers/form_helper.php
@@ -317,18 +317,22 @@ if ( ! function_exists('form_dropdown'))
// If name is really an array then we'll call the function again using the array
if (is_array($name))
{
+
if ( ! isset($name['options']))
{
$name['options'] = FALSE;
- }
+ }
+
if ( ! isset($name['selected']))
{
$name['selected'] = FALSE;
}
+
if ( ! isset($name['extra']))
{
$name['extra'] = FALSE;
}
+
return form_dropdown($name['name'], $name['options'], $name['selected'], $name['extra']);
}