User page: Fixed arrival text

This commit is contained in:
Igor Scheller 2020-09-21 22:47:14 +02:00 committed by msquare
parent 4c1f080402
commit 6c3d51272c
1 changed files with 3 additions and 3 deletions

View File

@ -759,10 +759,10 @@ function User_view_state_admin($freeloader, $user_source)
} else {
$arrivalDate = $user_source->personalData->planned_arrival_date;
$state[] = '<span class="text-danger">'
. sprintf(
. ($arrivalDate ? sprintf(
__('Not arrived (Planned: %s)'),
$arrivalDate ? $arrivalDate->format('Y-m-d') : ''
)
$arrivalDate->format('Y-m-d')
) : __('Not arrived'))
. '</span>';
}