code readability improvements
diff --git a/system/helpers/form_helper.php b/system/helpers/form_helper.php
index 8ccab99..82a4b9f 100644
--- a/system/helpers/form_helper.php
+++ b/system/helpers/form_helper.php
@@ -317,18 +317,22 @@
// 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']);
}