Commit e66c520a authored by Dries's avatar Dries

- Patch #93410 by bjaspan: theme_links() generated invalid XHTML in absence of links.

parent b3dae716
......@@ -507,7 +507,7 @@ function theme_status_messages($display = NULL) {
function theme_links($links, $attributes = array('class' => 'links')) {
$output = '';
if (is_array($links)) {
if (count($links) > 0) {
$output = '<ul'. drupal_attributes($attributes) .'>';
$num_links = count($links);
......
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