Index: weblinks.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/weblinks/weblinks.module,v
retrieving revision 1.30
diff -u -r1.30 weblinks.module
--- weblinks.module	11 Jul 2008 22:15:15 -0000	1.30
+++ weblinks.module	12 Jul 2008 01:07:30 -0000
@@ -666,15 +666,16 @@
     $tree = taxonomy_get_tree(_weblinks_get_vocid(), $tid, $_weblinks_depth = -1, $max_depth = 1); //get top-level cats
     if ($tree) {
       foreach ($tree as $term) {
-        //$output .= '<div class="catbox"><h3><a href="'. $term->tid .">'. check_plain($term->name) .'</a></h3>';
-        $output .= '<div class="catbox"><h3 class="weblinks">'. l($term->name, 'weblinks/'. $term->tid) .'</h3>';
-        if ($description) {
-          $output .= '<p>'. check_plain($term->description) .'</p>';
+        if (variable_get('weblinks_page_'. $term->tid, true)) {
+          $output .= '<div class="catbox"><h3 class="weblinks">'. l($term->name, 'weblinks/'. $term->tid) .'</h3>';
+          if ($description) {
+            $output .= '<p>'. check_plain($term->description) .'</p>';
+          }
+          global $_weblinks_depth; // @@@ Bdragon: wtf?
+          $_weblinks_depth = 0;
+          $output .= _weblinks_recurse_children($term->tid, $maxdepth, $withlinks);
+          $output .= '</div>';
         }
-        global $_weblinks_depth; // @@@ Bdragon: wtf?
-        $_weblinks_depth = 0;
-        $output .= _weblinks_recurse_children($term->tid, $maxdepth, $withlinks);
-        $output .= '</div>';
       }
     }
     else {
