--- taxonomy_blocks.module 2009-01-25 18:01:01.000000000 -0500 +++ taxonomy_blocks (copie).module 2009-03-28 17:20:00.000000000 -0400 @@ -126,6 +126,7 @@ function theme_taxonomy_blocks_block_con $tree = taxonomy_get_tree($vid, $parent, -1, $depth); // Parse the tree if ($tree) { + $first_loop = TRUE; foreach ($tree as $term) { // Filter using PHP code: @@ -151,7 +152,13 @@ function theme_taxonomy_blocks_block_con $output .= ''; } else { - $output .= ''; + if ($first_loop == TRUE) + { + $first_loop = FALSE; + } + else { + $output .= ''; + } } $output .= '
  • '; @@ -176,7 +183,7 @@ function theme_taxonomy_blocks_block_con } } if (!is_null($output)) { - $output = ''; + $output = ''; } }