attempt to resolve missing folder-information situation when accessing ajaxfelamimail

This commit is contained in:
Klaus Leithoff 2013-09-27 09:06:10 +00:00
parent dec4237e0e
commit dac72b58f4

View File

@ -72,6 +72,7 @@ class ajaxfelamimail
$this->sessionData =& $GLOBALS['egw']->session->appsession('session_data','felamimail'); $this->sessionData =& $GLOBALS['egw']->session->appsession('session_data','felamimail');
$this->sessionData['folderStatus'] = egw_cache::getCache(egw_cache::INSTANCE,'email','folderStatus'.trim($GLOBALS['egw_info']['user']['account_id']),$callback=null,$callback_params=array(),$expiration=60*60*1); $this->sessionData['folderStatus'] = egw_cache::getCache(egw_cache::INSTANCE,'email','folderStatus'.trim($GLOBALS['egw_info']['user']['account_id']),$callback=null,$callback_params=array(),$expiration=60*60*1);
if (!is_array($this->sessionDataAjax)) $this->sessionDataAjax = array(); if (!is_array($this->sessionDataAjax)) $this->sessionDataAjax = array();
if (!isset($this->sessionData['mailbox'])) $this->sessionData['mailbox'] = (isset($folderToSelect)?$folderToSelect:(isset($this->sessionDataAjax['folderName'])?$this->sessionDataAjax['folderName']:'INBOX'));
if(!isset($this->sessionDataAjax['folderName'])) { if(!isset($this->sessionDataAjax['folderName'])) {
$this->sessionDataAjax['folderName'] = $this->sessionData['mailbox']?$this->sessionData['mailbox']:'INBOX'; $this->sessionDataAjax['folderName'] = $this->sessionData['mailbox']?$this->sessionData['mailbox']:'INBOX';
} }