From: Michael M Slusarz Date: Mon, 15 Dec 2008 18:38:54 +0000 (-0700) Subject: Fix logic. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=755891fc5613924d6be74e0a55fb8e3aefb75af6;p=horde.git Fix logic. --- 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);