diff options
author | Derf Null <derf@finalrewind.org> | 2023-05-21 19:26:30 +0200 |
---|---|---|
committer | Derf Null <derf@finalrewind.org> | 2023-05-21 19:26:30 +0200 |
commit | 2e10115072b8ef90c9f08662ef18619e66899f4a (patch) | |
tree | f8191fb542ae8163640218d5aef5bda7305c1079 /lib/Travelynx/Controller | |
parent | 72f6c2ea2d49268228356d743a9d79fdd652c10a (diff) |
user_status: return no status if visibility is insufficient
Diffstat (limited to 'lib/Travelynx/Controller')
-rwxr-xr-x | lib/Travelynx/Controller/Profile.pm | 5 |
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} ) { |