summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-07-03 18:25:07 +0200
committerlpsolit%gmail.com <>2006-07-03 18:25:07 +0200
commitf447fd56a839c2270954a430d02ff445f04386e8 (patch)
tree0cd83eab7a840304414128d7a0db7e960a201828 /Bugzilla
parent70711889debb8b059c20c94435414d8c25f57e76 (diff)
downloadbugzilla-f447fd56a839c2270954a430d02ff445f04386e8.tar.gz
bugzilla-f447fd56a839c2270954a430d02ff445f04386e8.tar.xz
Fix on checkin for bug 343364
Diffstat (limited to 'Bugzilla')
-rwxr-xr-xBugzilla/Bug.pm2
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";