mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 16:33:17 +01:00
fix error for trying to use PEAR::Error as folder array to iterate
This commit is contained in:
parent
d10ba5d011
commit
9325b8205e
@ -1819,6 +1819,7 @@ class felamimail_bo
|
||||
if ($prefix_present=='forced') // you cannot trust dovecots assumed prefix
|
||||
{
|
||||
$allMailboxesExtAll = $this->icServer->getMailboxes('',0,true);
|
||||
if( PEAR::isError($allMailboxesExtAll) ) continue;
|
||||
foreach ($allMailboxesExtAll as $kaMEA => $aMEA) if (!in_array($aMEA,$allMailboxesExt)) $allMailboxesExt[] = $aMEA;
|
||||
}
|
||||
}
|
||||
@ -1834,7 +1835,7 @@ class felamimail_bo
|
||||
isset($allMailBoxesExtSorted[$mbx['MAILBOX'].$foldersNameSpace[$type]['delimiter']])||
|
||||
(substr($mbx['MAILBOX'],-1)==$foldersNameSpace[$type]['delimiter'] && isset($allMailBoxesExtSorted[substr($mbx['MAILBOX'],0,-1)]))
|
||||
) continue;
|
||||
|
||||
|
||||
//echo '#'.$mbx['MAILBOX'].':'.array2string($mbx)."#<br>";
|
||||
$allMailBoxesExtSorted[$mbx['MAILBOX']] = $mbx;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user