diff options
-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); |