@@ -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