Browse Source

return empty string if no items in html list.

Taylor Otwell 12 years ago
parent
commit
9a90d303c7
1 changed files with 2 additions and 0 deletions
  1. 2 0
      laravel/html.php

+ 2 - 0
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