diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-11-21 19:41:57 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-11-21 19:41:57 +0000 |
commit | e66c520aa4698853379173c3fcab87e302c82c02 (patch) | |
tree | a236cc7f034b1a842f07adbd6a8733fb3df08d4c | |
parent | b3dae71697597835c31aea71b13b3a516d3fa457 (diff) | |
download | brdo-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.inc | 2 |
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); |