mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +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])) {
|
if (\strlen($sEmailToDelete) && isset($aAccounts[$sEmailToDelete])) {
|
||||||
$bReload = false;
|
$bReload = false;
|
||||||
// $oAccount = $this->getAccountFromToken();
|
$oAccount = $this->getAccountFromToken();
|
||||||
if ($oAccount->Email() === $sEmailToDelete) {
|
if ($oAccount instanceof AdditionalAccount && $oAccount->Email() === $sEmailToDelete) {
|
||||||
Utils::ClearCookie(self::AUTH_ADDITIONAL_TOKEN_KEY);
|
Utils::ClearCookie(self::AUTH_ADDITIONAL_TOKEN_KEY);
|
||||||
$bReload = true;
|
$bReload = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue