diff options
author | Bo-Yi Wu <appleboy.tw@gmail.com> | 2013-02-18 01:52:05 +0100 |
---|---|---|
committer | Bo-Yi Wu <appleboy.tw@gmail.com> | 2013-02-18 01:52:05 +0100 |
commit | 06ddcf05c6861a908a0b3b57c6ba4a05bb82e10a (patch) | |
tree | ee48684ee0be1a705cf24768cb93c7493a38bbc6 /system/helpers/form_helper.php | |
parent | 99ba3a26973848604719db08bbcafbfa82ca087f (diff) |
Fixed form helper variable error
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Diffstat (limited to 'system/helpers/form_helper.php')
-rw-r--r-- | system/helpers/form_helper.php | 2 |
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"; |