### Eclipse Workspace Patch 1.0
#P category
Index: category.module
===================================================================
RCS file: /cvs/drupal/contributions/modules/category/category.module,v
retrieving revision 1.124.2.14
diff -u -r1.124.2.14 category.module
--- category.module	16 Jul 2007 03:30:14 -0000	1.124.2.14
+++ category.module	3 Jun 2008 07:00:44 -0000
@@ -1271,6 +1271,14 @@
 }
 
 function category_category_path($category) {
+
+  // In the event that this function is called using a taxonomy object rather than a category object,
+  // referring to $category->cid will result in null. We'll have to fake it and create $category->cid from 
+  // $category->tid
+  if (!$category->cnid) {
+    $category->cnid = $category->vid;
+    $category->cid = $category->tid; 
+  }
   $container = category_get_container($category->cnid);
   if ($container->module != 'category' && $path = module_invoke($container->module, 'category_path', $category)) {
     return $path;
