Commit 5ff99421 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#211060 by boydjd: do not display the taxonomy-term-description div when there is no description

parent d50abff2
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment