From 3e5443d74df2ea5c53676e43a01c0ee1a060d0da Mon Sep 17 00:00:00 2001 From: Nick Jenkins Date: Thu, 11 Oct 2007 07:04:59 +0000 Subject: [PATCH] Minor tweak to prevent an E_STRICT warning: "Object of class MailAddress to string conversion in includes/UserMailer.php on line 112" (It seems a bit silly of PHP to give this warning when the class has a __toString method, but adding an explicit toString() call is easy enough) --- includes/UserMailer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/UserMailer.php b/includes/UserMailer.php index cd15e3a0dd..19a47280a8 100644 --- a/includes/UserMailer.php +++ b/includes/UserMailer.php @@ -109,7 +109,7 @@ class UserMailer { if ( is_array( $to ) ) { wfDebug( __METHOD__.': sending mail to ' . implode( ',', $to ) . "\n" ); } else { - wfDebug( __METHOD__.': sending mail to ' . implode( ',', array( $to ) ) . "\n" ); + wfDebug( __METHOD__.': sending mail to ' . implode( ',', array( $to->toString() ) ) . "\n" ); } if (is_array( $wgSMTP )) { -- 2.20.1