--- pathauto_node.inc.orig      2007-04-29 00:30:14.839833000 -0500
+++ pathauto_node.inc   2007-04-29 00:30:19.876147750 -0500
@@ -211,6 +211,9 @@ function node_get_placeholders($node) {
            break;
       }
     }
+    if(is_object($first_term_id)) {
+        $first_term_id=$first_term_id->tid;
+    }
     $term = taxonomy_get_term($first_term_id);
     $placeholders[t('[cat]')] = pathauto_cleanstring($term->name);
