diff options
-rwxr-xr-x | Bugzilla/Bug.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 5ac2f2b0b..d62d69095 100755 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -162,9 +162,9 @@ sub new { # If we get something that looks like a word (not a number), # make it the "name" param. - if (!ref($param) && $param !~ /^\d+$/) { + if (!defined $param || (!ref($param) && $param !~ /^\d+$/)) { # But only if aliases are enabled. - if (Bugzilla->params->{'usebugaliases'}) { + if (Bugzilla->params->{'usebugaliases'} && $param) { $param = { name => $param }; } else { |