https://bugzilla.wikimedia.org/show_bug.cgi?id=23648
Summary: UserMailer.php function send() throws warning if $to
is an array of MailAddress
Product: MediaWiki
Version: 1.16-svn
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Normal
Component: General/Unknown
AssignedTo: [email protected]
ReportedBy: [email protected]
function send() in includes/UserMailer.php has a first parameter, $to, that can
be a singleton or an array. If a singleton, it must be a MailAddress object. If
you pass an array of MailAddress objects, however, you get the warning:
Object of class MailAddress to string conversion in .../includes/UserMailer.php
on line 115
The line is:
wfDebug( __METHOD__.': sending mail to ' . implode( ',', $to ) . "\n" );
This is strange. send() seems to be expecting an array of strings, or a single
MailAddress, but not an array of MailAddress objects.
This is either a bug to be fixed, or extra documentation is needed about valid
values for $to.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l