diff -ru taxonomy_menu/CHANGELOG taxonomy_menu_new/CHANGELOG
--- taxonomy_menu/CHANGELOG	2005-03-09 21:26:48.000000000 +0000
+++ taxonomy_menu_new/CHANGELOG	2007-11-03 00:00:36.000000000 +0000
@@ -1,3 +1,6 @@
+11/2/07
+- Added configuration option to hide terms with no members.
+
 3/9/05
 - Magically fixed most bugs relating to menu admin page handling of vocabularies.
 - Flush the menu cache when vocabularies change.
@@ -30,4 +33,4 @@
 Updated for new theme and menu systems.
 
 10/20/03
-Initial version.
\ No newline at end of file
+Initial version.
diff -ru taxonomy_menu/taxonomy_menu.module taxonomy_menu_new/taxonomy_menu.module
--- taxonomy_menu/taxonomy_menu.module	2007-02-22 04:02:42.000000000 +0000
+++ taxonomy_menu_new/taxonomy_menu.module	2007-11-02 22:58:02.000000000 +0000
@@ -61,8 +61,11 @@
           $path = $old_path .'/'. $term->tid;
           $old_depth = $term->depth;
           $old_path = $path;
-          $items[] = array('path' => $path, 'title' => t($term->name),
-            'weight' => $term->weight);
+          if (variable_get('taxonomy_menu_hide_empty_terms', 0) ||
+            taxonomy_term_count_nodes($term->tid) != 0) {
+              $items[] = array('path' => $path, 'title' => t($term->name),
+                'weight' => $term->weight);
+          }
         }
       }
     }
@@ -84,6 +87,14 @@
  * Menu callback; manage settings for taxonomy menu.
  */
 function taxonomy_menu_admin_settings() {
+  $form['taxonomy_menu_hide_empty_terms'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Hide Empty Terms'),
+    '#return_value' => 1,
+    '#default_value' => variable_get('taxonomy_menu_hide_empty_terms', 1),
+    '#description' => t('If checked, only taxonomy terms with members will be shown in the menu.'),
+   );
+
   $form['taxonomy_menu_display_descendants'] = array(
     '#type' => 'checkbox',
     '#title' => t('Display descendants'),
