From 755891fc5613924d6be74e0a55fb8e3aefb75af6 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Mon, 15 Dec 2008 11:38:54 -0700 Subject: [PATCH] Fix logic. --- imp/lib/Compose.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imp/lib/Compose.php b/imp/lib/Compose.php index 653bdbb59..ce839552a 100644 --- a/imp/lib/Compose.php +++ b/imp/lib/Compose.php @@ -1217,7 +1217,7 @@ class IMP_Compose $hdr_cc[] = $ob['address'] . ', '; } } - $header[isset($header['to']) ? 'cc' : 'to'] = rtrim(implode('', $hdr_cc), ' ,'); + $header[empty($header['to']) ? 'to' : 'cc'] = rtrim(implode('', $hdr_cc), ' ,'); /* Build the Bcc: header. */ $header['bcc'] = Horde_Mime_Address::addrArray2String($h->getOb('bcc') + $identity->getBccAddresses(), $all_addrs); -- 2.11.0