Index: invite.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/invite/invite.module,v
retrieving revision 1.25.2.6
diff -u -p -r1.25.2.6 invite.module
--- invite.module	27 Apr 2009 17:24:44 -0000	1.25.2.6
+++ invite.module	25 Jul 2009 01:57:43 -0000
@@ -1049,8 +1049,8 @@ function invite_form_submit($form, &$for
 
     // Send e-mail.
     $params = array('invite' => $invite);
-    $message = drupal_mail('invite', 'invite', $email, $language, $params, $from, TRUE);
-    if (1 || $message['result']) {
+    $sent_message = drupal_mail('invite', 'invite', $email, $language, $params, $from, TRUE);
+    if (1 || $sent_message['result']) {
       // Save invite.
       invite_save($invite);
 
