summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerf Null <derf@finalrewind.org>2023-05-21 19:26:30 +0200
committerDerf Null <derf@finalrewind.org>2023-05-21 19:26:30 +0200
commit2e10115072b8ef90c9f08662ef18619e66899f4a (patch)
treef8191fb542ae8163640218d5aef5bda7305c1079
parent72f6c2ea2d49268228356d743a9d79fdd652c10a (diff)
user_status: return no status if visibility is insufficient
-rwxr-xr-xlib/Travelynx/Controller/Profile.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Travelynx/Controller/Profile.pm b/lib/Travelynx/Controller/Profile.pm
index 182c90d..e809491 100755
--- a/lib/Travelynx/Controller/Profile.pm
+++ b/lib/Travelynx/Controller/Profile.pm
@@ -374,15 +374,14 @@ sub user_status {
)
)
{
- $status->{checked_in} = 0;
- $status->{arr_name} = undef;
+ $status = {};
}
}
if ( not $status->{checked_in}
and $status->{arr_name}
and not $user->{past_status} )
{
- $status->{arr_name} = undef;
+ $status = {};
}
if ( $status->{checked_in} ) {