node_load expects the nid of the node as default parameter, so if we are going
to call node_access('view', node_load($ids[0])) like in nodewords_get_tags() we
have to return the nid, and not the vid in node_nodewords_type_id() called
from  _nodewords_detect_type_and_ids().

I thought that checking access on node nid is enough, and there was no need to
rely on vid, am I wrong?

This bug prevents node specific keywords to be rendered at all.

Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>

diff -pruN nodewords/includes/node.inc nodewords_fixes/includes/node.inc
--- nodewords/includes/node.inc	2009-11-19 11:17:11.000000000 +0100
+++ nodewords_fixes/includes/node.inc	2009-12-03 13:38:27.000000000 +0100
@@ -41,7 +41,7 @@ function node_nodewords_type_id($arg) {
       );
 
       if ($bool) {
-        return array(NODEWORDS_TYPE_NODE, array($node->vid));
+        return array(NODEWORDS_TYPE_NODE, array($node->nid));
       }
     }
   }
