From 96537fd0b7bc72134c584546b5aeda5435301c65 Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Fri, 6 Jun 2008 13:41:53 +0000 Subject: goofed. Fixed up. --- system/helpers/form_helper.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'system/helpers/form_helper.php') 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 = '