Browse Source

Adding support for values in nested lists generated in the HTML class.

Signed-off-by: Ben Corlett <bencorlett@me.com>
Ben Corlett 12 years ago
parent
commit
af2bf68a29
1 changed files with 8 additions and 1 deletions
  1. 8 1
      laravel/html.php

+ 8 - 1
laravel/html.php

@@ -315,7 +315,14 @@ class HTML {
 			// 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
 			{