diff options
-rw-r--r-- | globals.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/globals.pl b/globals.pl index b5f3b7e36..825c30af7 100644 --- a/globals.pl +++ b/globals.pl @@ -1007,7 +1007,8 @@ sub GetAttachmentLink { sub GetBugLink { my ($bug_num, $link_text, $comment_num) = @_; - detaint_natural($bug_num) || die "GetBugLink() called with non-integer bug number"; + $bug_num || return "<missing bug number>"; + detaint_natural($bug_num) || return "<invalid bug number>"; # If we've run GetBugLink() for this bug number before, %::buglink # will contain an anonymous array ref of relevent values, if not |