mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-09-20 03:54:21 +08:00
Don't set default_domain in Nextcloud when already set
This commit is contained in:
parent
772d722972
commit
cef870328c
1 changed files with 4 additions and 2 deletions
|
@ -64,10 +64,12 @@ class SnappyMailHelper
|
||||||
'localhost', 25, \MailSo\Net\Enumerations\ConnectionSecurityType::NONE, true, true, false, false,
|
'localhost', 25, \MailSo\Net\Enumerations\ConnectionSecurityType::NONE, true, true, false, false,
|
||||||
'');
|
'');
|
||||||
$oProvider->Save($oDomain);
|
$oProvider->Save($oDomain);
|
||||||
|
if (!$oConfig->Set('login', 'default_domain', '')) {
|
||||||
$oConfig->Set('login', 'default_domain', 'nextcloud');
|
$oConfig->Set('login', 'default_domain', 'nextcloud');
|
||||||
$bSave = true;
|
$bSave = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$bSave && $oConfig->Save();
|
$bSave && $oConfig->Save();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue