Using oimplode( ',', $to ) in wfDebug would only result in the same problem as the...
authorSam Reed <reedy@users.mediawiki.org>
Sat, 11 Sep 2010 21:08:48 +0000 (21:08 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Sat, 11 Sep 2010 21:08:48 +0000 (21:08 +0000)
Bug linked tested on php 5.3.2 gives expected results. Can we optionally work around this now?

includes/UserMailer.php

index 07cf57d..f2e92ff 100644 (file)
@@ -121,7 +121,7 @@ class UserMailer {
                                $emails .= $t->toString() . ",";
                        }
                        $emails = rtrim( $emails, ',' );
-                       wfDebug( __METHOD__.': sending mail to ' . implode( ',', $to ) . "\n" );
+                       wfDebug( __METHOD__.': sending mail to ' . $emails . "\n" );
                } else {
                        wfDebug( __METHOD__.': sending mail to ' . implode( ',', array( $to->toString() ) ) . "\n" );
                }