summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Bugzilla/Template.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm
index a4e250cfc..71370a8c1 100644
--- a/Bugzilla/Template.pm
+++ b/Bugzilla/Template.pm
@@ -351,7 +351,7 @@ sub get_bug_link {
$title = html_quote(clean_text($title));
my $linkval = "show_bug.cgi?id=" . $bug->id;
- if ($options->{comment_num}) {
+ if (defined $options->{comment_num}) {
$linkval .= "#c" . $options->{comment_num};
}
return qq{$pre<a href="$linkval" title="$title">$link_text</a>$post};