commit | 60b97145a0cb1c3bba35ec68be7eae911b2b331c | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@bofh.bg> | Thu Oct 25 16:59:17 2012 +0300 |
committer | Andrey Andreev <narf@bofh.bg> | Thu Oct 25 16:59:17 2012 +0300 |
tree | d8ac3850f049fbabe07668d1c87f2d971f16c92f | |
parent | e47425844e84d54c659280c04f450a3526b4e09d [diff] [blame] |
Form helpers to ignore empty name attributes (fix #1506)
diff --git a/system/helpers/form_helper.php b/system/helpers/form_helper.php index 1bccac3..3cce868 100644 --- a/system/helpers/form_helper.php +++ b/system/helpers/form_helper.php
@@ -921,6 +921,10 @@ { $val = form_prep($val, $default['name']); } + elseif ($key === 'name' && ! strlen($default['name'])) + { + continue; + } $att .= $key.'="'.$val.'" '; }