mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-02-24 23:08:08 +08:00
Bugfix: instanceof check was incorrect
This commit is contained in:
parent
9a239679db
commit
66d1cf02b9
1 changed files with 2 additions and 2 deletions
|
@ -131,11 +131,11 @@ trait Accounts
|
|||
$aResult['IncLogin'] = $oAccount->IncLogin();
|
||||
$aResult['OutLogin'] = $oAccount->OutLogin();
|
||||
$aResult['AccountHash'] = $oAccount->Hash();
|
||||
$aResult['MainEmail'] = ($oAccount instanceof \RainLoop\Model\AdditionalAccount)
|
||||
$aResult['MainEmail'] = ($oAccount instanceof AdditionalAccount)
|
||||
? $oAccount->ParentEmail() : '';
|
||||
$aResult['ContactsIsAllowed'] = $this->AddressBookProvider($oAccount)->IsActive();
|
||||
$oSettingsLocal = $this->SettingsProvider(true)->Load($oAccount);
|
||||
if ($oSettingsLocal instanceof Settings) {
|
||||
if ($oSettingsLocal instanceof \RainLoop\Settings) {
|
||||
$aResult['SentFolder'] = (string) $oSettingsLocal->GetConf('SentFolder', '');
|
||||
$aResult['DraftFolder'] = (string) $oSettingsLocal->GetConf('DraftFolder', '');
|
||||
$aResult['SpamFolder'] = (string) $oSettingsLocal->GetConf('SpamFolder', '');
|
||||
|
|
Loading…
Reference in a new issue