com web/bugs: get all subscribers: include/functions.php

From: Date: Sat, 21 Jul 2018 10:34:49 +0000
Subject: com web/bugs: get all subscribers: include/functions.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-27151@lists.php.net to get a copy of this message
Commit: c442dc96f30c419107379e4f63e94d8122fc857d Author: Rasmus Lerdorf <rasmus@php.net> Sat, 21 Jul 2018 06:34:49 -0400 Parents: 966b95fee45e6a86ee0b2e9657321dda277aadc8 Branches: master Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=c442dc96f30c419107379e4f63e94d8122fc857d Log: get all subscribers Changed paths: M include/functions.php Diff: diff --git a/include/functions.php b/include/functions.php index 36d8648..1521db8 100644 --- a/include/functions.php +++ b/include/functions.php @@ -1384,7 +1384,7 @@ function get_package_mail($package_name, $bug_id = false, $bug_type = 'Bug') $to[] = $assigned; } } - $bcc = $dbh->prepare("SELECT email FROM bugdb_subscribe WHERE bug_id=?")->execute([$bug_id])->fetchOne(); + $bcc = $dbh->prepare("SELECT email FROM bugdb_subscribe WHERE bug_id=?")->execute([$bug_id])->fetchAll(); $bcc = array_unique($bcc); return array(implode(', ', $to), $mailfrom, implode(', ', $bcc), $params);

« previous php.webmaster (#27151) next »