Commit 4bb2e5f6 authored by Taylor Otwell's avatar Taylor Otwell

Merge pull request #698 from bencorlett/html-lists

Adding support for values in nested lists generated in the HTML class.
parents 79b42791 af2bf68a
...@@ -315,7 +315,14 @@ class HTML { ...@@ -315,7 +315,14 @@ class HTML {
// lists may exist within nested lists, etc. // lists may exist within nested lists, etc.
if (is_array($value)) 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 else
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment