From 1c3ee5f2a4f6fb8213b8ac23ec381a38806065d2 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Thu, 12 Jun 2003 19:20:20 +0000 Subject: [PATCH] fixed bug with smtp mailing and additional headers assigned. git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@4119 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/smtp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/includes/smtp.php b/phpBB/includes/smtp.php index 279e4332b9..da5f62be6f 100644 --- a/phpBB/includes/smtp.php +++ b/phpBB/includes/smtp.php @@ -86,7 +86,7 @@ function smtpmail($mail_to, $subject, $message, $headers = '') $bcc = preg_replace('#^bcc:(.*)#si', '\1', $header); $header = ''; } - $headers .= $header . "\r\n"; + $headers .= ($header != '') ? $header . "\r\n" : ''; } $headers = chop($headers);