Commit 748942ad authored by bugreport%peshkin.net's avatar bugreport%peshkin.net

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

r=erik, kiko a=justdave
parent 22c2767c
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment