diff --git a/snappymail/v/0.0.0/app/libraries/RainLoop/Model/Account.php b/snappymail/v/0.0.0/app/libraries/RainLoop/Model/Account.php index bd4b7ed82..958eb356a 100644 --- a/snappymail/v/0.0.0/app/libraries/RainLoop/Model/Account.php +++ b/snappymail/v/0.0.0/app/libraries/RainLoop/Model/Account.php @@ -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; }