From: Krzysztof Krzyzaniak Date: Mon, 26 May 2008 09:48:52 +0000 (+0000) Subject: $to could be array, replaced by $dest variable X-Git-Tag: 1.31.0-rc.0~47380 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=9a747796bbb8c62d81e13c291779a8a4c832d52d;p=lhc%2Fweb%2Fwiklou.git $to could be array, replaced by $dest variable --- diff --git a/includes/UserMailer.php b/includes/UserMailer.php index 8e576bb21b..c39b8f0c7f 100644 --- a/includes/UserMailer.php +++ b/includes/UserMailer.php @@ -126,10 +126,12 @@ class UserMailer { $headers['From'] = $from->toString(); - if ($wgEnotifImpersonal) + if ($wgEnotifImpersonal) { $headers['To'] = 'undisclosed-recipients:;'; - else - $headers['To'] = $to->toString(); + } + else { + $headers['To'] = implode( ", ", (array )$dest ); + } if ( $replyto ) { $headers['Reply-To'] = $replyto->toString();