Permalink
Browse files

Fixed issue #199 - Attributes passed as string does not include a spa…

…ce between it and the opening tag.
  • Loading branch information...
1 parent e0df079 commit b13a0dd78f0d0449e3ee9eb350ac06594beb3252 @ericbarnes ericbarnes committed with Phil Sturgeon Jul 18, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 system/helpers/html_helper.php
@@ -124,6 +124,10 @@ function _list($type = 'ul', $list, $attributes = '', $depth = 0)
}
$attributes = $atts;
}
+ elseif (is_string($attributes) AND strlen($attributes) > 0)
+ {
+ $attributes = ' '. $attributes;
+ }
// Write the opening list tag
$out .= "<".$type.$attributes.">\n";

0 comments on commit b13a0dd

Please sign in to comment.