Skip to content

Commit

Permalink
[Core] Assign quiz, question and category to teacher (author) #84
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentBouquet committed Jul 28, 2021
1 parent c7fe86b commit aacf971
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Entity/Group.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aacf971

Please sign in to comment.