Index: fivestar.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/fivestar/fivestar.module,v retrieving revision 1.13.2.32 diff -u -r1.13.2.32 fivestar.module --- fivestar.module 1 Jul 2008 18:29:56 -0000 1.13.2.32 +++ fivestar.module 2 Jul 2008 19:52:20 -0000 @@ -735,14 +735,16 @@ } // Get the user's current vote. - $criteria = array('content_type' => $type, 'content_id' => $cid, 'tag' => $tag); - $user_votes = votingapi_select_votes($criteria += array('uid' => $uid)); + $criteria = array('content_type' => $type, 'content_id' => $cid, 'tag' => $tag, 'uid' => $uid); + // Get the unique identifier for the user (IP Address if anonymous). + $user_criteria = votingapi_current_user_identifier(); + $user_votes = votingapi_select_votes($criteria + $user_criteria); if ($value == 0) { votingapi_delete_votes($user_votes); } else { - $votes = $criteria += array('value' => $value, 'uid' => $uid); + $votes = $criteria += array('value' => $value); votingapi_set_votes($votes, $user_votes); } return fivestar_get_votes($type, $cid, $tag, $uid);