summaryrefslogtreecommitdiffstats
path: root/system/helpers
diff options
context:
space:
mode:
authorGreg Aker <greg.aker@ellislab.com>2011-04-19 19:58:52 +0200
committerGreg Aker <greg.aker@ellislab.com>2011-04-19 19:58:52 +0200
commit9ce4385cfc976e309ee12c53726abfd4f066ac3f (patch)
tree4ce604f341e3451d1b65c1716d3880b1cbb4408b /system/helpers
parent3a746655e92ec59ee7e731c3535673a9aedc5d3e (diff)
1/2 reverting a previous change to the form_helper. Wrapping hidden form elements in <div style="display:none"></div> instead of an empty div. If a user is styling form div {} they can run into display issues, so something is needed.
Diffstat (limited to 'system/helpers')
-rw-r--r--system/helpers/form_helper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/helpers/form_helper.php b/system/helpers/form_helper.php
index bca0ff0c9..a5cd97b82 100644
--- a/system/helpers/form_helper.php
+++ b/system/helpers/form_helper.php
@@ -72,7 +72,7 @@ if ( ! function_exists('form_open'))
if (is_array($hidden) AND count($hidden) > 0)
{
- $form .= sprintf("\n<div>%s</div>", form_hidden($hidden));
+ $form .= sprintf("<div style=\"display:none\">%s</div>", form_hidden($hidden));
}
return $form;