summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorZachary Cardoza <bayssmekanique@live.com>2013-03-24 05:59:20 +0100
committerZachary Cardoza <bayssmekanique@live.com>2013-03-24 05:59:20 +0100
commit9f27a3e0a86c7ffb1751a6815eaf475c28ca96ba (patch)
tree4a469aab6c3004fc3e982c0c2ea8825c495de65b /system
parente15d1be514dad1df7a3c38d6265566692ecf1260 (diff)
Revert "Fixed error in Form Helper textarea function"
Diffstat (limited to 'system')
-rw-r--r--system/helpers/form_helper.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/system/helpers/form_helper.php b/system/helpers/form_helper.php
index 84a3e80cf..692909c79 100644
--- a/system/helpers/form_helper.php
+++ b/system/helpers/form_helper.php
@@ -261,6 +261,7 @@ 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";
}
}
@@ -1004,4 +1005,4 @@ if ( ! function_exists('_get_validation_object'))
}
/* End of file form_helper.php */
-/* Location: ./system/helpers/form_helper.php */
+/* Location: ./system/helpers/form_helper.php */ \ No newline at end of file