Commit 5f36738a authored by Dries's avatar Dries

- 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
......@@ -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>';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment