user_status: return no status if visibility is insufficient
This commit is contained in:
parent
72f6c2ea2d
commit
2e10115072
1 changed files with 2 additions and 3 deletions
|
@ -374,15 +374,14 @@ sub user_status {
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
$status->{checked_in} = 0;
|
$status = {};
|
||||||
$status->{arr_name} = undef;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ( not $status->{checked_in}
|
if ( not $status->{checked_in}
|
||||||
and $status->{arr_name}
|
and $status->{arr_name}
|
||||||
and not $user->{past_status} )
|
and not $user->{past_status} )
|
||||||
{
|
{
|
||||||
$status->{arr_name} = undef;
|
$status = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $status->{checked_in} ) {
|
if ( $status->{checked_in} ) {
|
||||||
|
|
Loading…
Reference in a new issue