Commit: 09a1a4e4393e8ea67002bd9b780c5875106a0c81 Author: Anatol Belski <[email protected]> Thu, 24 Apr 2014 17:29:43 +0200 Parents: e0a3df101bdfc9a1ca61b2589a1a2d9f19fe07c7 Branches: master
Link: http://git.php.net/?p=web/rmtools.git;a=commitdiff;h=09a1a4e4393e8ea67002bd9b780c5875106a0c81 Log: send mails to all the active leads from package.xml Changed paths: M client/include/PeclExt.php Diff: diff --git a/client/include/PeclExt.php b/client/include/PeclExt.php index 81ffbc1..6fa08b5 100644 --- a/client/include/PeclExt.php +++ b/client/include/PeclExt.php @@ -956,7 +956,7 @@ nodoc: public function getToEmail() { - $to = NULL; + $to = array(); $config = $this->getPackageConfig(); /* override package.xml */ @@ -973,12 +973,11 @@ nodoc: $leads = $this->getPackageXmlProperty("lead"); foreach ($leads as $lead) { if ((string)$lead->active == 'yes') { - $to = (string)$lead->email; - break; + $to[] = (string)$lead->email; } } - return $to; + return implode(",", $to); } public function mailMaintainers($success, $is_snap, array $logs, PeclMail $mailer, $force_email = NULL) -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
