]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 254430: Fix User.pm so it returns a logged-out user if userid=0
authorbugreport%peshkin.net <>
Fri, 6 Aug 2004 05:19:19 +0000 (05:19 +0000)
committerbugreport%peshkin.net <>
Fri, 6 Aug 2004 05:19:19 +0000 (05:19 +0000)
r=erik, kiko
a=justdave

Bugzilla/User.pm

index 44f9dd3f58b0994bb3b9ece10490eff4324122ee..71e2358fef6834dcd93e10a9b311e414c69f69d0 100644 (file)
@@ -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);