summaryrefslogtreecommitdiff
path: root/includes/theme.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/theme.inc')
-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);