summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Kallman <jkallman@eclarian.com>2011-12-19 01:25:45 +0100
committerJoel Kallman <jkallman@eclarian.com>2011-12-19 01:25:45 +0100
commit79c1c46c4c99ca143a1231f7fd6b845f7276e1fd (patch)
tree31017444b67f20e2813947728ca4814d95139bc0
parentc10144c1d2a53c4662d3de911fdd3989b389b163 (diff)
Makes form open properly when empty array of parameters is passed
Signed-off-by: Joel Kallman <jkallman@eclarian.com>
-rw-r--r--system/helpers/form_helper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/helpers/form_helper.php b/system/helpers/form_helper.php
index 0f02bcf75..347e8be90 100644
--- a/system/helpers/form_helper.php
+++ b/system/helpers/form_helper.php
@@ -1000,7 +1000,7 @@ if ( ! function_exists('_attributes_to_string'))
$attributes = (array)$attributes;
}
- if (is_array($attributes) AND count($attributes) > 0)
+ if (is_array($attributes) AND ($formtag === TRUE OR count($attributes) > 0))
{
$atts = '';