diff options
Diffstat (limited to 'views/default/input/form.php')
-rw-r--r-- | views/default/input/form.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/views/default/input/form.php b/views/default/input/form.php index e3e403242..8be0cc5db 100644 --- a/views/default/input/form.php +++ b/views/default/input/form.php @@ -22,8 +22,8 @@ $name = $vars['internalname']; $body = $vars['body']; $action = $vars['action']; - $enctype = $vars['enctype']; - $method = $vars['method']; if (!$method) $method = 'POST'; + if (isset($vars['enctype'])) { $enctype = $vars['enctype']; } else { $enctype = ''; } + if (isset($vars['method'])) { $method = $vars['method']; } else { $method = 'POST'; } // Generate a security header $security_header = ""; |