- Patch #38279 by paddy_deburca: fixed theme_item_list() not to generate an empty <ul></ul> tag when $items is empty.
parent
350f2e5aff
commit
5f36738a11
|
@ -839,7 +839,7 @@ function theme_item_list($items = array(), $title = NULL, $type = 'ul') {
|
|||
$output .= '<h3>'. $title .'</h3>';
|
||||
}
|
||||
|
||||
if (isset($items)) {
|
||||
if (!empty($items)) {
|
||||
$output .= "<$type>";
|
||||
foreach ($items as $item) {
|
||||
$output .= '<li>'. $item .'</li>';
|
||||
|
|
Loading…
Reference in New Issue