summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Barnes <eric@ericlbarnes.com>2011-12-19 06:24:25 +0100
committerEric Barnes <eric@ericlbarnes.com>2011-12-19 06:24:25 +0100
commit793b94ffff4085f5fe6c5fd0df7039a09ec23b1e (patch)
tree31017444b67f20e2813947728ca4814d95139bc0
parentc10144c1d2a53c4662d3de911fdd3989b389b163 (diff)
parent79c1c46c4c99ca143a1231f7fd6b845f7276e1fd (diff)
Merge pull request #795 from Eclarian/form-open-attr-bug
Make form open properly when empty array of parameters is passed
-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 = '';