From 5a3f9d3bacb9148625a14519b89214f3f2febade Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Fri, 27 Jun 2003 15:01:35 +0000 Subject: [PATCH] one more tweak git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@4182 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/emailer.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/phpBB/includes/emailer.php b/phpBB/includes/emailer.php index f5d7ba59e5..2aed527da1 100755 --- a/phpBB/includes/emailer.php +++ b/phpBB/includes/emailer.php @@ -199,7 +199,14 @@ class emailer @reset($address_ary); while (list(, $which_ary) = each($address_ary)) { - $$type .= (($$type != '') ? ',' : '') . (($which_ary['name'] != '') ? '"' . $this->encode($which_ary['name']) . '" <' . $which_ary['email'] . '>' : '<' . $which_ary['email'] . '>'); + if ($type != 'to') + { + $$type .= (($$type != '') ? ',' : '') . (($which_ary['name'] != '') ? '"' . $this->encode($which_ary['name']) . '" <' . $which_ary['email'] . '>' : '<' . $which_ary['email'] . '>'); + } + else + { + $$type .= (($$type != '') ? ',' : '') . $which_ary['email']; + } } }