From 2e10115072b8ef90c9f08662ef18619e66899f4a Mon Sep 17 00:00:00 2001 From: Derf Null Date: Sun, 21 May 2023 19:26:30 +0200 Subject: [PATCH] user_status: return no status if visibility is insufficient --- lib/Travelynx/Controller/Profile.pm | 5 ++--- 1 file 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} ) {