From: lpsolit%gmail.com <> Date: Mon, 3 Jul 2006 16:25:07 +0000 (+0000) Subject: Fix on checkin for bug 343364 X-Git-Tag: bugzilla-2.23.2~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f447fd56a839c2270954a430d02ff445f04386e8;p=thirdparty%2Fbugzilla.git Fix on checkin for bug 343364 --- diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 857557def3..f7e89c33d2 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";