Commit:    c442dc96f30c419107379e4f63e94d8122fc857d
Author:    Rasmus Lerdorf <[email protected]>         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);


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to