From 5ff9942154136d59eade5a409ac448860ea4e18b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Thu, 17 Jan 2008 19:36:37 +0000 Subject: [PATCH] #211060 by boydjd: do not display the taxonomy-term-description div when there is no description --- modules/taxonomy/taxonomy.pages.inc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/modules/taxonomy/taxonomy.pages.inc b/modules/taxonomy/taxonomy.pages.inc index 94dca76332d..d8b6655e8d7 100644 --- a/modules/taxonomy/taxonomy.pages.inc +++ b/modules/taxonomy/taxonomy.pages.inc @@ -91,9 +91,14 @@ function theme_taxonomy_term_page($tids, $result) { // Only display the description if we have a single term, to avoid clutter and confusion. if (count($tids) == 1) { $term = taxonomy_get_term($tids[0]); - $output .= '
'; - $output .= filter_xss_admin($term->description); - $output .= '
'; + $description = $term->description; + + // Check that a description is set. + if (!empty($description)) { + $output .= '
'; + $output .= filter_xss_admin($description); + $output .= '
'; + } } $output .= taxonomy_render_nodes($result);