Compare commits

...

2 Commits

Author SHA1 Message Date
Thibaut d023ffa331
Merge pull request #310 from arawa/fix/309_group_displayname_is_null
fix: #309 group displayname might be null
2024-12-05 10:06:49 +01:00
Sebastien Marinier 834e2a7800 fix: #309 group displayname might be null 2024-12-05 09:59:22 +01:00
1 changed files with 2 additions and 2 deletions

View File

@ -34,8 +34,8 @@ class Restriction extends Entity implements JsonSerializable {
$this->addType('allowRecording', 'boolean'); $this->addType('allowRecording', 'boolean');
} }
public function setGroupName(string $groupName) { public function setGroupName(?string $groupName) {
$this->groupName = $groupName; $this->groupName = $groupName ?? '';
} }
public function jsonSerialize(): array { public function jsonSerialize(): array {