fix bug of lost foldersettings on saving personal email accounts

This commit is contained in:
Klaus Leithoff 2011-10-06 15:16:58 +00:00
parent bba3dba9ac
commit 42c25d5377
2 changed files with 2 additions and 2 deletions

View File

@ -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'];

View File

@ -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);