commit | 6addf31e8f05758aa6f0eba4438d450d5b563402 | [log] [tgz] |
---|---|---|
author | Eric Barnes <eric@ericlbarnes.com> | Mon Jul 18 00:13:07 2011 -0400 |
committer | Eric Barnes <eric@ericlbarnes.com> | Mon Jul 18 00:13:07 2011 -0400 |
tree | 00dd6d6f75a049102dd688b37c87931016e59b16 | |
parent | 3b840b60c5cc9041098f971c4c58889bc609d82a [diff] [blame] |
Fixed issue #199 - Attributes passed as string does not include a space between it and the opening tag.
diff --git a/system/helpers/html_helper.php b/system/helpers/html_helper.php index 080f622..b64b606 100644 --- a/system/helpers/html_helper.php +++ b/system/helpers/html_helper.php
@@ -124,6 +124,10 @@ } $attributes = $atts; } + elseif (is_string($attributes) AND strlen($attributes) > 0) + { + $attributes = ' '. $attributes; + } // Write the opening list tag $out .= "<".$type.$attributes.">\n";