Commit df19c991 authored by catch's avatar catch

Issue #1349722 by kgoel, Everett Zufelt, xjm: Fixed who's new & who's online...

Issue #1349722 by kgoel, Everett Zufelt, xjm: Fixed who's new & who's online blocks have empty headings.
parent 1a095dd6
......@@ -2146,8 +2146,10 @@ function theme_item_list($variables) {
}
// Only output the list container and title, if there are any list items.
// Check to see whether the block title exists before adding a header.
// Empty headers are not semantic and present accessibility challenges.
if ($output !== '') {
if (!empty($title)) {
if (isset($title) && $title !== '') {
$title = '<h3>' . $title . '</h3>';
}
$output = '<div class="item-list">' . $title . $output . '</div>';
......
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