diff --git a/Domain/ReservationItemView.php b/Domain/ReservationItemView.php index 12ac6b38a..d511ff923 100644 --- a/Domain/ReservationItemView.php +++ b/Domain/ReservationItemView.php @@ -487,7 +487,7 @@ public function __construct( # more than just one first and one last name $lastIndex = count($name_parts) - 1; $firstnames = implode(' ', array_splice($name_parts, 0, $lastIndex)); - $lastnames = $name_parts[$lastIndex]; + $lastnames = $name_parts[0]; // could be extended to guess which is a middle name etc. } $this->ParticipantIds[] = $id;