Merge pull request #698 from bencorlett/html-lists

Adding support for values in nested lists generated in the HTML class.
This commit is contained in:
Taylor Otwell 2012-05-30 06:58:19 -07:00
commit 4bb2e5f63f
1 changed files with 8 additions and 1 deletions

View File

@ -315,7 +315,14 @@ private static function listing($type, $list, $attributes = array())
// lists may exist within nested lists, etc.
if (is_array($value))
{
$html .= static::listing($type, $value);
if (is_int($key))
{
$html .= static::listing($type, $value);
}
else
{
$html .= '<li>'.$key.static::listing($type, $value).'</li>';
}
}
else
{