diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2008-01-17 19:36:37 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2008-01-17 19:36:37 +0000 |
commit | 5ff9942154136d59eade5a409ac448860ea4e18b (patch) | |
tree | befb9c418ff8e4122bcbf8d787c0adb9ea0b8266 /modules | |
parent | d50abff253543cf6bffbd897c8f17c3424566365 (diff) | |
download | brdo-5ff9942154136d59eade5a409ac448860ea4e18b.tar.gz brdo-5ff9942154136d59eade5a409ac448860ea4e18b.tar.bz2 |
#211060 by boydjd: do not display the taxonomy-term-description div when there is no description
Diffstat (limited to 'modules')
-rw-r--r-- | modules/taxonomy/taxonomy.pages.inc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/modules/taxonomy/taxonomy.pages.inc b/modules/taxonomy/taxonomy.pages.inc index 94dca7633..d8b6655e8 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 .= '<div class="taxonomy-term-description">'; - $output .= filter_xss_admin($term->description); - $output .= '</div>'; + $description = $term->description; + + // Check that a description is set. + if (!empty($description)) { + $output .= '<div class="taxonomy-term-description">'; + $output .= filter_xss_admin($description); + $output .= '</div>'; + } } $output .= taxonomy_render_nodes($result); |