Fixed error in form_textarea helper function
Reverted from GitHub edited version to remove document line end
character. Good to merge now.
diff --git a/system/helpers/form_helper.php b/system/helpers/form_helper.php
index 692909c..fd9e7be 100644
--- a/system/helpers/form_helper.php
+++ b/system/helpers/form_helper.php
@@ -261,7 +261,6 @@
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";
}
}