--- stock/drupal-4.7.0-beta2/modules/forum.module	2005-12-16 08:23:27.000000000 -0500
+++ drupal-4.7.0-beta2/modules/forum.module	2005-12-17 01:14:43.000000000 -0500
@@ -797,11 +797,11 @@
 function forum_page($tid = 0) {
   global $user;
 
-  if (module_exist('taxonomy') && module_exist('comment')) {
+  $forums = forum_get_forums($tid);
+  if (module_exist('taxonomy') && module_exist('comment') && count($forums) > 0) {
     $forum_per_page = variable_get('forum_per_page', 25);
     $sortby = variable_get('forum_order', 1);
 
-    $forums = forum_get_forums($tid);
     $parents = taxonomy_get_parents_all($tid);
     if ($tid && !in_array($tid, variable_get('forum_containers', array()))) {
       $topics = forum_get_topics($tid, $sortby, $forum_per_page);
