From dc49a00f5fae8cbac2b1e2d401967b9176cbfced Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Sun, 14 Jul 2024 14:21:55 +0200 Subject: [PATCH] Bugfix: Call to a member function SmtpSettings() on null #1664 --- snappymail/v/0.0.0/app/libraries/RainLoop/Model/Account.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }