diff options
author | lpsolit%gmail.com <> | 2006-07-03 18:25:07 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2006-07-03 18:25:07 +0200 |
commit | f447fd56a839c2270954a430d02ff445f04386e8 (patch) | |
tree | 0cd83eab7a840304414128d7a0db7e960a201828 /Bugzilla/Bug.pm | |
parent | 70711889debb8b059c20c94435414d8c25f57e76 (diff) | |
download | bugzilla-f447fd56a839c2270954a430d02ff445f04386e8.tar.gz bugzilla-f447fd56a839c2270954a430d02ff445f04386e8.tar.xz |
Fix on checkin for bug 343364
Diffstat (limited to 'Bugzilla/Bug.pm')
-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"; |