Index: uuid.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/uuid/uuid.module,v
retrieving revision 1.1.2.11
diff -u -p -r1.1.2.11 uuid.module
--- uuid.module	28 Jul 2010 18:06:30 -0000	1.1.2.11
+++ uuid.module	7 Sep 2010 17:37:29 -0000
@@ -57,7 +57,7 @@ function uuid_nodeapi(&$node, $op, $teas
       }
       break;
     case 'update':
-      if ($node->revision) {
+      if (!empty($node->revision)) {
         if (isset($node->revision_uuid) && uuid_is_valid($node->revision_uuid)) {
           db_query("INSERT INTO {uuid_node_revisions} (vid, uuid) VALUES (%d, '%s')", $node->vid, $node->revision_uuid);
         }
@@ -184,7 +184,7 @@ function uuid_taxonomy($op, $type, $arra
       'field' => 'vid',
     ),
   );
-  
+
   if (array_key_exists($type, $types) && in_array($array['vid'], variable_get('uuid_automatic_for_taxonomy', array()))) {
     $field = $types[$type]['field'];
     switch ($op) {
