Permalink
Browse files

Update system/helpers/form_helper.php

  • Loading branch information...
1 parent 130c5f4 commit 4d509d6ac5cca8f2863308cdb29699e44f393dc1 @JFox-sk committed Oct 13, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 system/helpers/form_helper.php
@@ -133,6 +133,9 @@ function form_hidden($name, $value = '', $recursing = FALSE, $extra = '')
{
static $form;
+ if(strlen($extra))
+ $extra = ' '.$extra;
+
if ($recursing === FALSE)
{
$form = "\n";
@@ -149,7 +152,7 @@ function form_hidden($name, $value = '', $recursing = FALSE, $extra = '')
if ( ! is_array($value))
{
- $form .= '<input type="hidden" name="'.$name.'" value="'.form_prep($value, $name)."\" '.$extra.' />\n";
+ $form .= '<input type="hidden" name="'.$name.'" value="'.form_prep($value, $name).'"'.$extra." />\n";
}
else
{

0 comments on commit 4d509d6

Please sign in to comment.