Fix recipient email in EmailNewActivationCodeForm
authorTim Düsterhus <duesterhus@woltlab.com>
Sun, 26 Jul 2015 16:36:22 +0000 (18:36 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Sun, 26 Jul 2015 16:36:22 +0000 (18:36 +0200)
wcfsetup/install/files/lib/form/EmailNewActivationCodeForm.class.php

index e5704409d22a116c2846d418a310a2e718dca8b3..df350bfcab0fbf72e9c08a7766ad179f93a19715 100644 (file)
@@ -72,7 +72,7 @@ class EmailNewActivationCodeForm extends RegisterNewActivationCodeForm {
                        'userID' => $this->user->userID,
                        'activationCode' => $activationCode
                );
-               $mail = new Mail(array($this->user->username => !empty($this->email) ? $this->email : $this->user->email), WCF::getLanguage()->getDynamicVariable('wcf.user.changeEmail.needReactivation.mail.subject'), WCF::getLanguage()->getDynamicVariable('wcf.user.changeEmail.needReactivation.mail', $messageData));
+               $mail = new Mail(array($this->user->username => $this->user->newEmail), WCF::getLanguage()->getDynamicVariable('wcf.user.changeEmail.needReactivation.mail.subject'), WCF::getLanguage()->getDynamicVariable('wcf.user.changeEmail.needReactivation.mail', $messageData));
                $mail->send();
                $this->saved();