### Eclipse Workspace Patch 1.0
#P drupal-6
Index: modules/forum/forum.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/forum/forum.module,v
retrieving revision 1.448.2.5
diff -u -r1.448.2.5 forum.module
--- modules/forum/forum.module	24 Oct 2008 19:07:47 -0000	1.448.2.5
+++ modules/forum/forum.module	16 Nov 2008 21:25:37 -0000
@@ -474,10 +474,12 @@
       // Link back to the forum and not the taxonomy term page. We'll only
       // do this if the taxonomy term in question belongs to forums.
       $tid = str_replace('taxonomy/term/', '', $link['href']);
-      $vid = variable_get('forum_nav_vocabulary', '');
-      $term = taxonomy_get_term($tid);
-      if ($term->vid == $vid) {
-        $links[$module]['href'] = str_replace('taxonomy/term', 'forum', $link['href']);
+      if (is_numeric($tid)) {
+        $vid = variable_get('forum_nav_vocabulary', '');
+        $term = taxonomy_get_term($tid);
+        if ($term->vid == $vid) {
+          $links[$module]['href'] = str_replace('taxonomy/term', 'forum', $link['href']);
+        }
       }
     }
   }
