Bug 254430: Fix User.pm so it returns a logged-out user if userid=0

r=erik, kiko
a=justdave
This commit is contained in:
bugreport%peshkin.net 2004-08-05 22:19:19 +00:00
parent 60c695cf6d
commit ce0af4d52f

View 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);