summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-rw-r--r--system/helpers/form_helper.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/system/helpers/form_helper.php b/system/helpers/form_helper.php
index 1bccac35c..3cce8688f 100644
--- a/system/helpers/form_helper.php
+++ b/system/helpers/form_helper.php
@@ -921,6 +921,10 @@ if ( ! function_exists('_parse_form_attributes'))
{
$val = form_prep($val, $default['name']);
}
+ elseif ($key === 'name' && ! strlen($default['name']))
+ {
+ continue;
+ }
$att .= $key.'="'.$val.'" ';
}