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

This commit is contained in:
Klaus Leithoff 2012-07-27 07:14:35 +00:00
parent d10ba5d011
commit 9325b8205e

View File

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