From a981c31afd2bba68868f4acc8737718b6510ae06 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Tue, 19 Jul 2011 11:42:35 +0000 Subject: [PATCH] quieten warning regarding foreach on POST->destination --- felamimail/inc/class.uicompose.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/felamimail/inc/class.uicompose.inc.php b/felamimail/inc/class.uicompose.inc.php index 0fca12c8a5..fe9caa04d9 100644 --- a/felamimail/inc/class.uicompose.inc.php +++ b/felamimail/inc/class.uicompose.inc.php @@ -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');