--- autotag.module.orig	2009-02-04 10:19:05 -0500
+++ autotag.module	2009-02-04 13:38:27 -0500
@@ -30,7 +30,12 @@ function autotag_nodeapi(&$node, $op, $a
       $all_tids = _autotag_search_node($node);
       $tids_to_ignore = explode("|",$node->hideterms);      
       // Remove the ignore ones from the add ones
-      $terms = $node->taxonomy;
+      $terms = array();
+      if (isset($node->taxonomy)) {
+        foreach ($node->taxonomy as $term) {
+          $terms[$term->vid][] = $term->tid;
+        }
+      }
       foreach($all_tids as $tid){
         if(!in_array($tid['tid'], $tids_to_ignore)){
           if(is_array($terms[$tid['vid']])){
