mirror of https://github.com/MISP/MISP
chg: skip if email disabled, avoids logging exception on each email attempt fixes #9251
parent
eb12f89a2d
commit
225b74bf93
|
@ -845,6 +845,10 @@ class User extends AppModel
|
|||
*/
|
||||
public function sendEmail(array $user, $body, $bodyNoEnc = false, $subject, $replyToUser = false)
|
||||
{
|
||||
if (Configure::read('MISP.disable_emailing')) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if ($user['User']['disabled'] || !$this->checkIfUserIsValid($user['User'])) {
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue