diff options
Diffstat (limited to 'Bugzilla/BugMail.pm')
-rw-r--r-- | Bugzilla/BugMail.pm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Bugzilla/BugMail.pm b/Bugzilla/BugMail.pm index acc12556d..0d5d3fd78 100644 --- a/Bugzilla/BugMail.pm +++ b/Bugzilla/BugMail.pm @@ -703,11 +703,12 @@ sub prepare_comments { my $result = ""; foreach my $comment (@$raw_comments) { if ($count) { + my $author = $comment->{'author'}; $result .= "\n\n--- Comment #$count from "; - if ($comment->{'name'}) { - $result .= $comment->{'name'} . " <" . $comment->{'email'} . ">"; + if ($author->name) { + $result .= $author->name . " <" . $author->email . ">"; } else { - $result .= $comment->{'email'}; + $result .= $author->email; } $result .= " " . format_time($comment->{'time'}) . " ---\n"; } |