fix: [bug] Fixed e-mailing bug introduced during the refactoring

pull/3535/head
iglocska 2018-08-05 18:14:25 +02:00
parent cb900d7a1f
commit 0e1b058ac9
1 changed files with 2 additions and 2 deletions

View File

@ -788,7 +788,7 @@ class User extends AppModel
}
$replyToLog = '';
if (!$failed) {
$this->__finaliseAndSendEmail($replyToUser, $Email, $replyToLog, $user, $subject, $body);
$result = $this->__finaliseAndSendEmail($replyToUser, $Email, $replyToLog, $user, $subject, $body);
}
$this->Log = ClassRegistry::init('Log');
$this->Log->create();
@ -840,7 +840,7 @@ class User extends AppModel
$Email->emailFormat('text');
$result = $Email->send($body);
$Email->reset();
return true;
return $result;
}
private function __encryptUsingGPG(&$Email, &$body, $subject, $user)