--- drupal-orig/current/sites/all/modules/invite/invite.module	2009-05-28 03:29:43.000000000 +0000
+++ drupal-dev/sites/all/modules/invite/invite.module	2009-05-28 04:39:23.000000000 +0000
@@ -421,10 +421,8 @@
  *   The user object of the invitee.
  */
 function invite_accept($invite, $account) {
-  // Update the invitation record.
-  db_query("UPDATE {invite} SET email = '%s', invitee = %d, joined = %d WHERE reg_code = '%s'", $account->mail, $account->uid, time(), $invite->reg_code);
-  // Delete all invites to these e-mail addresses, except this one.
-  db_query("DELETE FROM {invite} WHERE (email = '%s' OR email = '%s') AND reg_code <> '%s'", $invite->email, $account->mail, $invite->reg_code);
+  // Update all invitation records.
+  db_query("UPDATE {invite} SET email = '%s', invitee = %d, joined = %d WHERE (reg_code = '%s' OR email = '%s' OR email = '%s')", $account->mail, $account->uid, time(), $invite->reg_code, $invite->email, $account->mail);
   // Add all users who invited this particular e-mail address to the
   // notification queue.
   db_query("INSERT INTO {invite_notifications} (uid, invitee) SELECT uid, %d from {invite} WHERE (email = '%s' OR email = '%s') AND canceled = 0", $account->uid, $invite->email, $account->mail);
