diff --git a/app/Models/EventParticipant.php b/app/Models/EventParticipant.php index 64c1604..4da71a2 100644 --- a/app/Models/EventParticipant.php +++ b/app/Models/EventParticipant.php @@ -141,7 +141,7 @@ class EventParticipant extends InstancedModel } public function getFullName() : string { - if ($this->nickname === null) { + if ($this->nickname === null || trim($this->nickname) === '') { return sprintf('%1$s %2$s', $this->firstname, $this->lastname) |>trim(...); }