fix error for trying to use PEAR::Error as folder array to iterate; second attempt

This commit is contained in:
Klaus Leithoff 2012-07-27 07:26:46 +00:00
parent 9325b8205e
commit 7f6130db67

View File

@ -1819,8 +1819,11 @@ 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;
foreach ($allMailboxesExtAll as $kaMEA => $aMEA)
{
if( PEAR::isError($aMEA) ) continue;
if (!in_array($aMEA,$allMailboxesExt)) $allMailboxesExt[] = $aMEA;
}
}
}
if( PEAR::isError($allMailboxesExt) ) {
@ -1828,7 +1831,7 @@ class felamimail_bo
continue;
}
$allMailBoxesExtSorted = array();
foreach ($allMailboxesExt as $mbx) {
foreach ((array)$allMailboxesExt as $mbx) {
//echo __METHOD__;_debug_array($mbx);
//error_log(__METHOD__.__LINE__.array2string($mbx));
if (isset($allMailBoxesExtSorted[$mbx['MAILBOX']])||