summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2013-02-18 10:57:35 +0100
committerAndrey Andreev <narf@bofh.bg>2013-02-18 10:57:35 +0100
commit8917ff32a90663c96e923e82d90d83f386694015 (patch)
treeee48684ee0be1a705cf24768cb93c7493a38bbc6 /system
parent99ba3a26973848604719db08bbcafbfa82ca087f (diff)
parent06ddcf05c6861a908a0b3b57c6ba4a05bb82e10a (diff)
Merge pull request #2257 from appleboy/helper
Fixed form helper variable error
Diffstat (limited to 'system')
-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";