From aee6ed7dbfb590dae70c700785ac8ef8743151fb Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Wed, 17 Sep 2014 11:15:32 +0200 Subject: [PATCH] Fixed bad message when setting e-mail to empty --- src/Services/EmailService.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Services/EmailService.php b/src/Services/EmailService.php index e2bb46a2..3a2bd455 100644 --- a/src/Services/EmailService.php +++ b/src/Services/EmailService.php @@ -28,12 +28,7 @@ class EmailService public function sendActivationEmail(\Szurubooru\Entities\User $user, \Szurubooru\Entities\Token $token) { if (!$user->getEmailUnconfirmed()) - { - throw new \BadMethodCallException( - $user->getEmail() - ? 'E-mail for this account is already confirmed.' - : 'An e-mail address is needed to activate the account.'); - } + throw new \BadMethodCallException('An e-mail address is needed to activate the account.'); $mailSubject = $this->tokenize($this->config->mail->activationSubject); $mailBody = $this->tokenizeFile(