summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbugreport%peshkin.net <>2004-08-06 07:19:19 +0200
committerbugreport%peshkin.net <>2004-08-06 07:19:19 +0200
commit748942ad13661d5e73ef8555ede190aad7038c35 (patch)
tree8347f2c4c1eeb775f1040a649f6ad921aeaa2e98
parent22c2767cefa1dbb9784f755a51b9e4ff0adb202c (diff)
downloadbugzilla-748942ad13661d5e73ef8555ede190aad7038c35.tar.gz
bugzilla-748942ad13661d5e73ef8555ede190aad7038c35.tar.xz
Bug 254430: Fix User.pm so it returns a logged-out user if userid=0
r=erik, kiko a=justdave
-rw-r--r--Bugzilla/User.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm
index 44f9dd3f5..71e2358fe 100644
--- a/Bugzilla/User.pm
+++ b/Bugzilla/User.pm
@@ -80,7 +80,7 @@ sub _create {
'showmybugslink' => 0,
};
bless ($self, $class);
- return $self unless $cond;
+ return $self unless $cond && $val;
# We're checking for validity here, so any value is OK
trick_taint($val);