diff --git a/system/html.php b/system/html.php index a24b0ee2..f7c53282 100644 --- a/system/html.php +++ b/system/html.php @@ -195,13 +195,13 @@ class HTML { * @param array $attributes * @return string */ - private static function list_elements($type, $list, $attributes) + private static function list_elements($type, $list, $attributes = array()) { $html = ''; foreach ($list as $key => $value) { - $html .= '
  • '.static::entities($value).'
  • '; + $html .= (is_array($value)) ? static::list_elements($type, $value) : '
  • '.static::entities($value).'
  • '; } return '<'.$type.static::attributes($attributes).'>'.$html.'';