mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-17 10:51:38 +01:00
fix bug of lost foldersettings on saving personal email accounts
This commit is contained in:
parent
bba3dba9ac
commit
42c25d5377
@ -95,7 +95,7 @@
|
||||
|
||||
// currently we use only the first profile available
|
||||
$accountData = array_shift($accountData);
|
||||
#_debug_array($accountData);
|
||||
//_debug_array($accountData);
|
||||
|
||||
$icServer = CreateObject('emailadmin.defaultimap');
|
||||
$icServer->ImapServerId = $accountData['id'];
|
||||
|
@ -311,7 +311,7 @@
|
||||
$identity =& $accountData['identity'];
|
||||
//_debug_array($identity);
|
||||
if (!isset($this->bofelamimail) || ((int)$_POST['active'] && !empty($icServer->host))) $this->bofelamimail = felamimail_bo::getInstance(false,$icServer->ImapServerId);
|
||||
if((int)$_POST['active'] && !empty($icServer->host) && $this->bofelamimail->openConnection(($icServer->ImapServerId?$icServer->ImapServerId:0))) {
|
||||
if(((int)$_POST['active'] || $accountData['active']) && !empty($icServer->host) && $this->bofelamimail->openConnection(($icServer->ImapServerId?$icServer->ImapServerId:0))) {
|
||||
$folderObjects = $this->bofelamimail->getFolderObjects();
|
||||
foreach($folderObjects as $folderName => $folderInfo) {
|
||||
//_debug_array($folderInfo);
|
||||
|
Loading…
Reference in New Issue
Block a user