--- favorite_nodes.module	2007-11-23 04:04:26.000000000 -0600
+++ favorite_nodes.module	2007-12-13 16:15:40.000000000 -0600
@@ -268,12 +268,11 @@ function favorite_nodes_link($type, $nod
     if (variable_get(FAVORITE_NODES_NODE_TYPE . $node->type, 0)) {
       if (user_access(FAVORITE_NODES_PERM_ADD)) {
         if (!_favorite_nodes_check($node->nid)) {
-          $links[] = array('title' => t('add to favorites'), 'href' => 'favorite_nodes/add/'. $node->nid);
-        }
-        else {
+          $links['favorite_nodes_add'] = array('title' => t('add to favorites'), 'href' => 'favorite_nodes/add/'. $node->nid);
+        } else {
           if (user_access(FAVORITE_NODES_PERM_VIEW)) {
-            $links[] = array('title' => t('in favorites'));
-            $links[] = array('title' => t('remove from favorites'), 'href' => 'favorite_nodes/delete/'. $node->nid);
+            $links['favorite_nodes_in'] = array('title' => t('in favorites'));
+            $links['favorite_nodes_remove'] = array('title' => t('remove from favorites'), 'href' => 'favorite_nodes/delete/'. $node->nid);
           }
         }
       }
