diff -up token/token.module token-fixed/token.module
--- token/token.module	2008-07-14 22:15:10.000000000 +0200
+++ token-fixed/token.module	2009-03-01 18:44:50.500000000 +0100
@@ -349,11 +349,11 @@ function _token_get_id($type = 'global',
   }
   switch ($type) {
     case 'node':
-      return $object->nid;
+      return !empty($object->nid) ? $object->nid : crc32(serialize($object));
     case 'comment':
-      return $object->cid;
+      return !empty($object->cid) ? $object->cid : crc32(serialize($object));
     case 'user':
-      return $object->uid;
+      return !empty($object->uid) ? $object->uid : crc32(serialize($object));
     default:
       return crc32(serialize($object));
   }
Wspólne podkatalogi: token/translations i token-fixed/translations
