mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-08 22:18:28 +03:00
Bugfix: Call to a member function Email() on null
This commit is contained in:
parent
12a7a9e3fe
commit
85ddc5bbb2
1 changed files with 2 additions and 2 deletions
|
|
@ -105,8 +105,8 @@ trait Accounts
|
|||
|
||||
if (\strlen($sEmailToDelete) && isset($aAccounts[$sEmailToDelete])) {
|
||||
$bReload = false;
|
||||
// $oAccount = $this->getAccountFromToken();
|
||||
if ($oAccount->Email() === $sEmailToDelete) {
|
||||
$oAccount = $this->getAccountFromToken();
|
||||
if ($oAccount instanceof AdditionalAccount && $oAccount->Email() === $sEmailToDelete) {
|
||||
Utils::ClearCookie(self::AUTH_ADDITIONAL_TOKEN_KEY);
|
||||
$bReload = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue