From 834e2a78002f9d1fa4932dd8338442e7807985e3 Mon Sep 17 00:00:00 2001 From: Sebastien Marinier Date: Thu, 5 Dec 2024 09:59:22 +0100 Subject: [PATCH] fix: #309 group displayname might be null --- lib/Db/Restriction.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Db/Restriction.php b/lib/Db/Restriction.php index b014204..2614571 100644 --- a/lib/Db/Restriction.php +++ b/lib/Db/Restriction.php @@ -34,8 +34,8 @@ class Restriction extends Entity implements JsonSerializable { $this->addType('allowRecording', 'boolean'); } - public function setGroupName(string $groupName) { - $this->groupName = $groupName; + public function setGroupName(?string $groupName) { + $this->groupName = $groupName ?? ''; } public function jsonSerialize(): array {