summaryrefslogtreecommitdiffstats
path: root/system/helpers/form_helper.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/helpers/form_helper.php')
-rw-r--r--system/helpers/form_helper.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/system/helpers/form_helper.php b/system/helpers/form_helper.php
index 2c1a639df..03839e0ed 100644
--- a/system/helpers/form_helper.php
+++ b/system/helpers/form_helper.php
@@ -312,9 +312,9 @@ if ( ! function_exists('form_dropdown'))
function form_dropdown($data = '', $options = array(), $selected = array(), $extra = '')
{
$name = ! is_array($data) ? $data : '';
- $defaults = array('name' => ( $name));
+ $defaults = array('name' => $name);
- if ( is_array($data) AND isset($data['selected']) AND $data['selected'] !== NULL)
+ if (is_array($data) && isset($data['selected']) && $data['selected'] !== NULL)
{
$selected = $data['selected'];
unset($data['selected']); // selects don't have a selected attribute
@@ -328,7 +328,7 @@ if ( ! function_exists('form_dropdown'))
$selected = array($_POST[$name]);
}
- if ( is_array($data) && isset($data['options']))
+ if (is_array($data) && isset($data['options']))
{
$options = $data['options'];
unset($data['options']); // selects don't use an options attribute