Skip to content

Commit 641d8bb

Browse files
committed
Error when admin delete registration #523
1 parent 5927aab commit 641d8bb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

adm_program/system/classes/userregistration.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ public function delete()
111111
{
112112
global $gMessage, $gL10n, $gPreferences;
113113

114-
$userEmail = $this->getValue('EMAIL');
114+
$userEmail = $this->getValue('EMAIL');
115+
$userFirstName = $this->getValue('FIRST_NAME');
116+
$userLastName = $this->getValue('LAST_NAME');
115117

116118
$this->db->startTransaction();
117119

@@ -140,7 +142,7 @@ public function delete()
140142
{
141143
// send mail to user that his registration was accepted
142144
$sysmail = new SystemMail($this->db);
143-
$sysmail->addRecipient($this->getValue('EMAIL'), $this->getValue('FIRST_NAME'). ' '. $this->getValue('LAST_NAME'));
145+
$sysmail->addRecipient($userEmail, $userFirstName. ' '. $userLastName);
144146
$sysmail->sendSystemMail('SYSMAIL_REFUSE_REGISTRATION', $this); // TODO Exception handling
145147
}
146148

0 commit comments

Comments
 (0)