summaryrefslogtreecommitdiffstats
path: root/system/helpers
diff options
context:
space:
mode:
authorBo-Yi Wu <appleboy.tw@gmail.com>2013-02-18 01:52:05 +0100
committerBo-Yi Wu <appleboy.tw@gmail.com>2013-02-18 01:52:05 +0100
commit06ddcf05c6861a908a0b3b57c6ba4a05bb82e10a (patch)
treeee48684ee0be1a705cf24768cb93c7493a38bbc6 /system/helpers
parent99ba3a26973848604719db08bbcafbfa82ca087f (diff)
Fixed form helper variable error
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
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 d6e3e85fa..692909c79 100644
--- a/system/helpers/form_helper.php
+++ b/system/helpers/form_helper.php
@@ -228,7 +228,7 @@ if ( ! function_exists('form_upload'))
*/
function form_upload($data = '', $value = '', $extra = '')
{
- $default = array('type' => 'file', 'name' => '');
+ $defaults = array('type' => 'file', 'name' => '');
is_array($data) OR $data = array('name' => $data);
$data['type'] = 'file';
return '<input '._parse_form_attributes($data, $defaults).$extra." />\n";