diff options
author | Derek Allard <derek.allard@ellislab.com> | 2008-06-06 15:41:53 +0200 |
---|---|---|
committer | Derek Allard <derek.allard@ellislab.com> | 2008-06-06 15:41:53 +0200 |
commit | 96537fd0b7bc72134c584546b5aeda5435301c65 (patch) | |
tree | 0476fe380c653bc758020c5d561a16b58bb34c79 /system/helpers/form_helper.php | |
parent | f7623aab9c9d9c0d0dae5911857cf8ba8d7a462c (diff) |
goofed. Fixed up.
Diffstat (limited to 'system/helpers/form_helper.php')
-rw-r--r-- | system/helpers/form_helper.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/system/helpers/form_helper.php b/system/helpers/form_helper.php index 37afc2daf..d250d76e8 100644 --- a/system/helpers/form_helper.php +++ b/system/helpers/form_helper.php @@ -40,10 +40,15 @@ */
if ( ! function_exists('form_open'))
{
- function form_open($action = '', $attributes = = 'method="post"', $hidden = array())
+ function form_open($action = '', $attributes = '', $hidden = array())
{
$CI =& get_instance();
+ if ($attributes == '')
+ {
+ $attributes = 'method="post"';
+ }
+
$action = ( strpos($action, '://') === FALSE) ? $CI->config->site_url($action) : $action;
$form = '<form action="'.$action.'"';
|