mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-09-20 07:35:55 +08:00
Bugfix: Call to a member function SmtpSettings() on null #1664
This commit is contained in:
parent
95436347e5
commit
dc49a00f5f
|
@ -45,7 +45,7 @@ abstract class Account implements \JsonSerializable
|
|||
|
||||
public function SmtpUser() : string
|
||||
{
|
||||
return $this->sSmtpUser ?: $this->oDomain->SmtpSettings()->fixUsername($this->sEmail);
|
||||
return $this->sSmtpUser ?: ($this->oDomain ? $this->oDomain->SmtpSettings()->fixUsername($this->sEmail) : '');
|
||||
// return $this->sSmtpUser ?: $this->sEmail ?: $this->sImapUser;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue