From af2bf68a29002109a1b1a10d38ea95ff1f34c6e6 Mon Sep 17 00:00:00 2001 From: Ben Corlett Date: Wed, 23 May 2012 12:25:26 +1000 Subject: [PATCH] Adding support for values in nested lists generated in the HTML class. Signed-off-by: Ben Corlett --- laravel/html.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/laravel/html.php b/laravel/html.php index b6cd3eeb..b5688201 100644 --- a/laravel/html.php +++ b/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 .= '
  • '.$key.static::listing($type, $value).'
  • '; + } } else {