summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-11-21 19:41:57 +0000
committerDries Buytaert <dries@buytaert.net>2006-11-21 19:41:57 +0000
commite66c520aa4698853379173c3fcab87e302c82c02 (patch)
treea236cc7f034b1a842f07adbd6a8733fb3df08d4c
parentb3dae71697597835c31aea71b13b3a516d3fa457 (diff)
downloadbrdo-e66c520aa4698853379173c3fcab87e302c82c02.tar.gz
brdo-e66c520aa4698853379173c3fcab87e302c82c02.tar.bz2
- Patch #93410 by bjaspan: theme_links() generated invalid XHTML in absence of links.
-rw-r--r--includes/theme.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index 2dcbc021f..16412c1cf 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -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);