diff options
Diffstat (limited to 'Bugzilla')
-rwxr-xr-x | Bugzilla/Bug.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 857557def..f7e89c33d 100755 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -119,7 +119,7 @@ sub initBug { $self->{'who'} = new Bugzilla::User($user_id); - if ((! defined $bug_id) || (!$bug_id) || (!detaint_natural($bug_id))) { + unless ($bug_id && detaint_natural($bug_id)) { # no bug number given or the alias didn't match a bug $self->{'bug_id'} = $old_bug_id; $self->{'error'} = "InvalidBugId"; |