From 9a90d303c7ab1ede66c8c84fbfb90f31e9840547 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 19 Apr 2012 08:45:56 -0500 Subject: [PATCH] return empty string if no items in html list. --- laravel/html.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/laravel/html.php b/laravel/html.php index bcb69628..be83fc03 100644 --- a/laravel/html.php +++ b/laravel/html.php @@ -306,6 +306,8 @@ class HTML { { $html = ''; + if (count($list) == 0) return $html; + foreach ($list as $key => $value) { // If the value is an array, we will recurse the function so that we can