mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-08 22:18:28 +03:00
Bugfix: Call to a member function SmtpSettings() on null #1664
This commit is contained in:
parent
95436347e5
commit
dc49a00f5f
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue