From 53ff0485deef33ba83fe9a4c841c2f2f91160f46 Mon Sep 17 00:00:00 2001 From: webchick Date: Sat, 28 Apr 2012 23:44:44 -0700 Subject: Issue #1349722 by kgoel, Everett Zufelt, xjm: Fixed Who's new & Who's online blocks have empty headings. --- includes/theme.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/theme.inc b/includes/theme.inc index 0712f8797..268795e17 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -1967,8 +1967,11 @@ function theme_item_list($variables) { $type = $variables['type']; $attributes = $variables['attributes']; + // 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. $output = '
'; - if (isset($title)) { + if (isset($title) && $title !== '') { $output .= '

' . $title . '

'; } -- cgit v1.2.3