return empty string if no items in html list.

This commit is contained in:
Taylor Otwell 2012-04-19 08:45:56 -05:00
parent 09e456d2bf
commit 9a90d303c7
1 changed files with 2 additions and 0 deletions

View File

@ -306,6 +306,8 @@ private static function listing($type, $list, $attributes = array())
{
$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