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

r=erik, kiko
a=justdave


git-svn-id: svn://10.0.0.236/trunk@160423 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bugreport%peshkin.net
2004-08-05 22:19:19 +00:00
parent 1fb032938f
commit 2078808f42

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