From 14d4ce17cd338d05ae098e19badc53713a5793a7 Mon Sep 17 00:00:00 2001 From: Guido Vollbach Date: Fri, 26 Sep 2025 09:10:15 +0200 Subject: [PATCH] Add default values if object does not exist anymore --- classes/class.ilObjMultiVc.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/classes/class.ilObjMultiVc.php b/classes/class.ilObjMultiVc.php index b7f760d6..d17cfee6 100755 --- a/classes/class.ilObjMultiVc.php +++ b/classes/class.ilObjMultiVc.php @@ -164,15 +164,15 @@ public function doRead(): void $this->setPrivateChat($settings->isPrivateChatDefault()); $this->setRecord($settings->isRecordDefault()); $this->setCamOnlyForModerator($settings->isCamOnlyForModeratorDefault()); - $this->setOnline($this->ilIntToBool($record["is_online"])); + $this->setOnline($this->ilIntToBool($record["is_online"] ?: 0)); $this->set_token($record["token"]); - $this->set_moderated($this->ilIntToBool($record["moderated"])); - $this->set_btnSettings($this->ilIntToBool($record["btn_settings"])); - $this->set_btnChat($this->ilIntToBool($record["btn_chat"])); - $this->set_withChat($this->ilIntToBool($record["with_chat"])); - $this->set_btnLocationshare($this->ilIntToBool($record["btn_locationshare"])); - $this->set_memberBtnFileupload($this->ilIntToBool($record["member_btn_fileupload"])); - $this->set_faExpand($this->ilIntToBool($record["fa_expand"])); + $this->set_moderated($this->ilIntToBool($record["moderated"] ?: 0)); + $this->set_btnSettings($this->ilIntToBool($record["btn_settings"] ?: 0)); + $this->set_btnChat($this->ilIntToBool($record["btn_chat"] ?: 0)); + $this->set_withChat($this->ilIntToBool($record["with_chat"] ?: 0)); + $this->set_btnLocationshare($this->ilIntToBool($record["btn_locationshare"] ?: 0)); + $this->set_memberBtnFileupload($this->ilIntToBool($record["member_btn_fileupload"] ?: 0)); + $this->set_faExpand($this->ilIntToBool($record["fa_expand"] ?: 0)); $this->setAttendeePwd($record["attendeepwd"]); $this->setModeratorPwd($record["moderatorpwd"]); $this->setPrivateChat((bool) $record["private_chat"]);