summaryrefslogtreecommitdiffstats
path: root/system/helpers/form_helper.php
diff options
context:
space:
mode:
authorBrennan Thompson <brenjt@gmail.com>2014-02-17 03:36:00 +0100
committerBrennan Thompson <brenjt@gmail.com>2014-02-17 03:36:00 +0100
commitc8ba6630167df5682fc0be2ae2d1352554374d1f (patch)
tree51e77dd889d7325ef60b9dee553784a78e20aa1c /system/helpers/form_helper.php
parent7a772e5b4a145eef7457d5a1667d716348ea071b (diff)
Updated code to match style guide
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