mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-26 16:52:41 +01:00
Prevent audit email from sending as the wrong user
Summary: We may overwrite $comment as a side effect of iteration. Test Plan: Made some audit comments as different users. Reviewers: vrana, btrahan Reviewed By: vrana CC: aran, epriestley Differential Revision: https://secure.phabricator.com/D2050
This commit is contained in:
parent
813329c0a5
commit
b6e0ca5ac6
1 changed files with 2 additions and 2 deletions
|
@ -301,8 +301,8 @@ final class PhabricatorAuditCommentEditor {
|
|||
}
|
||||
|
||||
$email_cc = array();
|
||||
foreach ($other_comments as $comment) {
|
||||
$email_cc[] = $comment->getActorPHID();
|
||||
foreach ($other_comments as $other_comment) {
|
||||
$email_cc[] = $other_comment->getActorPHID();
|
||||
}
|
||||
|
||||
$phids = array_merge($email_to, $email_cc);
|
||||
|
|
Loading…
Reference in a new issue