Changed the logic for form_open() in Form helper. If no value is passed it will submit to the current URL.
diff --git a/system/helpers/form_helper.php b/system/helpers/form_helper.php
index 758056b..8ed520f 100644
--- a/system/helpers/form_helper.php
+++ b/system/helpers/form_helper.php
@@ -49,7 +49,10 @@
$attributes = 'method="post"';
}
- $action = ( strpos($action, '://') === FALSE) ? $CI->config->site_url($action) : $action;
+ if ($action && strpos($action, '://') === FALSE)
+ {
+ $CI->config->site_url($action);
+ }
$form = '<form action="'.$action.'"';