From: Sam Reed Date: Sat, 11 Sep 2010 21:08:48 +0000 (+0000) Subject: Using oimplode( ',', $to ) in wfDebug would only result in the same problem as the... X-Git-Tag: 1.31.0-rc.0~34990 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22articles%22%2C%22id_article=%24id_article%22%29%20.%20%22?a=commitdiff_plain;h=7f2d9336cb99943f5bb8d7bf09c9a30ac06a83fb;p=lhc%2Fweb%2Fwiklou.git Using oimplode( ',', $to ) in wfDebug would only result in the same problem as the listed bug (object, object, object) that was being worked around Bug linked tested on php 5.3.2 gives expected results. Can we optionally work around this now? --- diff --git a/includes/UserMailer.php b/includes/UserMailer.php index 07cf57d48c..f2e92ffd76 100644 --- a/includes/UserMailer.php +++ b/includes/UserMailer.php @@ -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" ); }