Makes form open properly when empty array of parameters is passed
Signed-off-by: Joel Kallman <jkallman@eclarian.com>
diff --git a/system/helpers/form_helper.php b/system/helpers/form_helper.php
index 0f02bcf..347e8be 100644
--- a/system/helpers/form_helper.php
+++ b/system/helpers/form_helper.php
@@ -1000,7 +1000,7 @@
$attributes = (array)$attributes;
}
- if (is_array($attributes) AND count($attributes) > 0)
+ if (is_array($attributes) AND ($formtag === TRUE OR count($attributes) > 0))
{
$atts = '';