diff options
author | Eric Barnes <eric@ericlbarnes.com> | 2011-07-18 06:13:07 +0200 |
---|---|---|
committer | Eric Barnes <eric@ericlbarnes.com> | 2011-07-18 06:13:07 +0200 |
commit | 6addf31e8f05758aa6f0eba4438d450d5b563402 (patch) | |
tree | 00dd6d6f75a049102dd688b37c87931016e59b16 /system/helpers/html_helper.php | |
parent | 3b840b60c5cc9041098f971c4c58889bc609d82a (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.php | 4 |
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"; |