diff --git a/src/Entity/Group.php b/src/Entity/Group.php index f036820..9e0e273 100644 --- a/src/Entity/Group.php +++ b/src/Entity/Group.php @@ -54,7 +54,11 @@ public function __construct() public function __toString(): string { - return $this->shortname; + if ($this->shortname) { + return $this->shortname; + } else { + return ""; + } } public function getId(): ?int