quieten warning regarding foreach on POST->destination

This commit is contained in:
Klaus Leithoff 2011-07-19 11:42:35 +00:00
parent 97a91b82a5
commit a981c31afd

View File

@ -100,7 +100,7 @@
{
$formData['identity'] = (int)$_POST['identity'];
foreach($_POST['destination'] as $key => $destination) {
foreach((array)$_POST['destination'] as $key => $destination) {
if(!empty($_POST['address'][$key])) {
if($destination == 'folder') {
$formData[$destination][] = $GLOBALS['egw']->translation->convert($_POST['address'][$key], $this->charset, 'UTF7-IMAP');