Skip to content
Snippets Groups Projects
Commit 5f36738a authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #38279 by paddy_deburca: fixed theme_item_list() not to generate an...

- Patch #38279 by paddy_deburca: fixed theme_item_list() not to generate an empty <ul></ul> tag when $items is empty.
parent 350f2e5a
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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>';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment