Fix: Evite warning PHP

This commit is contained in:
Laurent Destailleur 2005-10-17 16:58:15 +00:00
parent ce396e5e79
commit b1c26e984e

View File

@ -216,6 +216,7 @@ class CMailFile
*/
function write_body($msgtext, $filename_list)
{
$out='';
if (count($filename_list))
{
$out = "--" . $this->mime_boundary . "\n";
@ -257,9 +258,9 @@ class CMailFile
$out .= "Return-path: <$this->addr_from_email>\n";
$out .= "From: $this->addr_from_name <".$this->addr_from_email.">\n";
if ($this->addr_cc) $out .= "Cc: ".$this->addr_cc."\n";
if ($this->addr_bcc) $out .= "Bcc: ".$this->addr_bcc."\n";
if ($this->reply_to) $out .= "Reply-To: ".$this->reply_to."\n";
if (isset($this->addr_cc) && $this->addr_cc) $out .= "Cc: ".$this->addr_cc."\n";
if (isset($this->addr_bcc) && $this->addr_bcc) $out .= "Bcc: ".$this->addr_bcc."\n";
if (isset($this->reply_to) && $this->reply_to) $out .= "Reply-To: ".$this->reply_to."\n";
// if($this->errors_to != "")
//$out = $out . "Errors-to: ".$this->errors_to."\n";