mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:18:57 +01:00
handle some array values (delimiter, attributes) when folderInfo was retrieved from cache
This commit is contained in:
parent
98cc3e220b
commit
ee3e5941eb
@ -1729,14 +1729,19 @@ class felamimail_bo
|
||||
// no folder info, but there is a status returned for the folder: something is wrong, try to cope with it
|
||||
$folderInfo = array(0 => (is_array($folderInfo)?$folderInfo:array('HIERACHY_DELIMITER'=>$this->getHierarchyDelimiter(),
|
||||
'ATTRIBUTES' => '')));
|
||||
if (empty($folderInfo[0]['HIERACHY_DELIMITER']) || (isset($folderInfo[0]['delimiter']) && empty($folderInfo[0]['delimiter'])))
|
||||
{
|
||||
//error_log(__METHOD__.__LINE__.array2string($folderInfo));
|
||||
$folderInfo[0]['HIERACHY_DELIMITER'] = $this->getHierarchyDelimiter();
|
||||
}
|
||||
}
|
||||
}
|
||||
#if(!is_array($folderInfo[0])) {
|
||||
# return false;
|
||||
#}
|
||||
|
||||
$retValue['delimiter'] = $folderInfo[0]['HIERACHY_DELIMITER'];
|
||||
$retValue['attributes'] = $folderInfo[0]['ATTRIBUTES'];
|
||||
$retValue['delimiter'] = ($folderInfo[0]['HIERACHY_DELIMITER']?$folderInfo[0]['HIERACHY_DELIMITER']:$folderInfo[0]['delimiter']);
|
||||
$retValue['attributes'] = ($folderInfo[0]['ATTRIBUTES']?$folderInfo[0]['ATTRIBUTES']:$folderInfo[0]['attributes']);
|
||||
$shortNameParts = explode($retValue['delimiter'], $_folderName);
|
||||
$retValue['shortName'] = array_pop($shortNameParts);
|
||||
$retValue['displayName'] = $this->encodeFolderName($_folderName);
|
||||
|
Loading…
Reference in New Issue
Block a user