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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user