Index: /trunk/sites/all/modules/pathauto/pathauto_taxonomy.inc
===================================================================
--- /trunk/sites/all/modules/pathauto/pathauto_taxonomy.inc (revision 280)
+++ /trunk/sites/all/modules/pathauto/pathauto_taxonomy.inc (revision 281)
@@ -74,5 +74,5 @@
   
   $forum_vid = variable_get('forum_nav_vocabulary', '');
-  if ($forum_vid === $category->vid) {
+  if ($forum_vid === (int)$category->vid) {
     $src = 'forum/'. $category->tid;
     if ($forumalias = pathauto_create_alias('taxonomy', $op, $placeholders, $src, $forum_vid)) {
