summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZach Cardoza <bayssmekanique@live.com>2013-03-22 22:50:39 +0100
committerZach Cardoza <bayssmekanique@live.com>2013-03-22 22:50:39 +0100
commite15d1be514dad1df7a3c38d6265566692ecf1260 (patch)
treef63e1fb5f5dafc1637fed082f632cd5a9ca11ab7
parent13f6eabafa655828a8c09b4ae0a58a2e3776c269 (diff)
Fixed error in Form Helper textarea function
Function had declaration of unused $name variable which caused errors.
-rw-r--r--system/helpers/form_helper.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/system/helpers/form_helper.php b/system/helpers/form_helper.php
index 692909c79..84a3e80cf 100644
--- a/system/helpers/form_helper.php
+++ b/system/helpers/form_helper.php
@@ -261,7 +261,6 @@ if ( ! function_exists('form_textarea'))
unset($data['value']); // textareas don't use the value attribute
}
- $name = is_array($data) ? $data['name'] : $data;
return '<textarea '._parse_form_attributes($data, $defaults).$extra.'>'.form_prep($val, TRUE)."</textarea>\n";
}
}
@@ -1005,4 +1004,4 @@ if ( ! function_exists('_get_validation_object'))
}
/* End of file form_helper.php */
-/* Location: ./system/helpers/form_helper.php */ \ No newline at end of file
+/* Location: ./system/helpers/form_helper.php */