--- /Users/chellman/Desktop/dl/favorite_nodes/favorite_nodes.module	2008-07-21 22:27:46.000000000 -0500
+++ /Users/chellman/Desktop/favorite_nodes_new.module	2008-08-15 01:37:00.000000000 -0500
@@ -285,12 +285,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, 'attributes' => array('class' => 'favorites add'));
-        }
-        else {
+          $links['favorite_nodes_add'] = array('title' => t('add to favorites'), 'href' => 'favorite_nodes/add/'. $node->nid, 'attributes' => array('class' => 'favorites add'));
+        } 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, 'attributes' => array('class' => 'favorites remove'));
+            $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, 'attributes' => array('class' => 'favorites remove'));
           }
         }
       }
