diff --git a/includes/view/User_view.php b/includes/view/User_view.php index 97ea6c0c..86bb8cc8 100644 --- a/includes/view/User_view.php +++ b/includes/view/User_view.php @@ -499,9 +499,8 @@ function User_view( $goodie_tshirt = $goodie === GoodieType::Tshirt; $auth = auth(); $nightShiftsConfig = config('night_shifts'); - $user_name = htmlspecialchars( - $user_source->personalData->first_name - ) . ' ' . htmlspecialchars($user_source->personalData->last_name); + $user_name = htmlspecialchars((string) $user_source->personalData->first_name) . ' ' + . htmlspecialchars((string) $user_source->personalData->last_name); $myshifts_table = ''; if ($its_me || $admin_user_privilege || $tshirt_admin) { $my_shifts = User_view_myshifts( diff --git a/resources/views/pages/settings/profile.twig b/resources/views/pages/settings/profile.twig index cb2d2470..a9889c71 100644 --- a/resources/views/pages/settings/profile.twig +++ b/resources/views/pages/settings/profile.twig @@ -54,9 +54,10 @@ {% if config('enable_planned_arrival') %}