diff --git a/html/user/team_founder_transfer_action.php b/html/user/team_founder_transfer_action.php
index c31e396a22..1554998f0b 100644
--- a/html/user/team_founder_transfer_action.php
+++ b/html/user/team_founder_transfer_action.php
@@ -17,6 +17,22 @@ if (!$user->teamid) {
}
function send_founder_transfer_email($team, $user) {
+ $founder = lookup_user_id($team->userid);
+
+ // send founder a private message for good measure
+
+ $subject = "Team founder transfer request";
+ $body = "Team member ".$user->name." has asked that you
+transfer foundership of $team->name.
+Please go [url=".URL_BASE."team_change_founder_form.php?teamid=$team->id]here[/url] to grant or decline the request.
+
+If you do not respond within 60 days, ".$user->name." will
+be allowed to become the team founder.
+";
+
+ pm_send($founder, $subject, $body);
+
+ $subject = PROJECT." team founder transfer";
$body = "Team member ".$user->name." has asked that you
transfer foundership of $team->name in ".PROJECT.".
Please visit
@@ -29,21 +45,6 @@ be allowed to become the team founder.
Please do not respond to this email.
The mailbox is not monitored and the email
was sent using an automated system.";
-
- $subject = PROJECT." team founder transfer";
- $founder = lookup_user_id($team->userid);
-
- // send founder a private message for good measure
-
- $body = "Team member ".$user->name." has asked that you
-transfer foundership of $team->name.
-Please go [url=".URL_BASE."team_change_founder_form.php?teamid=$team->id]here[/url] to grant or decline the request.
-
-If you do not respond within 60 days, ".$user->name." will
-be allowed to become the team founder.
-";
-
- pm_send($founder, $subject, $body);
return send_email($founder, $subject, $body);
}