summaryrefslogtreecommitdiffstats
path: root/Bugzilla/BugMail.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla/BugMail.pm')
-rw-r--r--Bugzilla/BugMail.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/Bugzilla/BugMail.pm b/Bugzilla/BugMail.pm
index fa52464f8..79033dbbe 100644
--- a/Bugzilla/BugMail.pm
+++ b/Bugzilla/BugMail.pm
@@ -704,11 +704,11 @@ sub prepare_comments {
foreach my $comment (@$raw_comments) {
if ($count) {
$result .= "\n\n--- Comment #$count from ";
- if ($comment->{'name'} eq $comment->{'email'}) {
- $result .= $comment->{'email'} . Bugzilla->params->{'emailsuffix'};
- } else {
+ if ($comment->{'name'}) {
$result .= $comment->{'name'} . " <" . $comment->{'email'} .
Bugzilla->params->{'emailsuffix'} . ">";
+ } else {
+ $result .= $comment->{'email'} . Bugzilla->params->{'emailsuffix'};
}
$result .= " " . format_time($comment->{'time'}) . " ---\n";
}