summaryrefslogtreecommitdiffstats
path: root/system/helpers/html_helper.php
diff options
context:
space:
mode:
authorEric Barnes <eric@ericlbarnes.com>2011-07-18 06:13:07 +0200
committerPhil Sturgeon <email@philsturgeon.co.uk>2011-08-13 19:21:34 +0200
commitb13a0dd78f0d0449e3ee9eb350ac06594beb3252 (patch)
tree559112d1008380403a0e8db53b64bb2f85171acb /system/helpers/html_helper.php
parente0df07950b101316c07ccec882ae00f930bca0c6 (diff)
Fixed issue #199 - Attributes passed as string does not include a space between it and the opening tag.
Diffstat (limited to 'system/helpers/html_helper.php')
-rw-r--r--system/helpers/html_helper.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/system/helpers/html_helper.php b/system/helpers/html_helper.php
index 080f622dd..b64b60650 100644
--- a/system/helpers/html_helper.php
+++ b/system/helpers/html_helper.php
@@ -124,6 +124,10 @@ if ( ! function_exists('_list'))
}
$attributes = $atts;
}
+ elseif (is_string($attributes) AND strlen($attributes) > 0)
+ {
+ $attributes = ' '. $attributes;
+ }
// Write the opening list tag
$out .= "<".$type.$attributes.">\n";