--- click2bookmark.module.org.20070423 2007-04-23 21:57:04.000000000 +0800 +++ click2bookmark1.module 2007-05-06 23:59:08.968750000 +0800 @@ -73,7 +73,11 @@ function _click2bookmark_bookmark_add($nid = 0) { global $user; - $node = node_load($nid); + $result = db_query('SELECT * FROM {node} WHERE nid="%d"', $nid); + if ($result && db_num_rows($result) > 0) { + $node = db_fetch_object($result); // mainly to use the ->title later. + } + $node->path = drupal_get_path_alias('node/'.$nid); // gets the alias path, if any. if (!$node->nid) { drupal_set_message(t('This content can\'t be bookmarked...')); return false;