--- modules/taxonomy/taxonomy.pages.inc 10 Feb 2010 06:28:10 -0000 1.51
+++ modules/taxonomy/taxonomy.pages.inc 10 Jun 2010 20:49:47 -0000
@@ -28,12 +28,17 @@ function taxonomy_term_page($term) {
$breadcrumb = array_reverse($breadcrumb);
drupal_set_breadcrumb($breadcrumb);
drupal_add_feed(url('taxonomy/term/' . $term->tid . '/feed'), 'RSS - ' . $term->name);
-
- $build['term_heading'] = array(
- '#prefix' => '
',
- '#suffix' => '
',
- 'term' => taxonomy_term_view($term, 'full'),
- );
+
+ $build = array();
+
+ // Only add a term heading if the term has a description
+ if (!empty($term->description)) {
+ $build['term_heading'] = array(
+ '#prefix' => '',
+ '#suffix' => '
',
+ 'term' => taxonomy_term_view($term, 'full'),
+ );
+ }
if ($nids = taxonomy_select_nodes($term->tid, TRUE, variable_get('default_nodes_main', 10))) {
$nodes = node_load_multiple($nids);