Skip to content

Commit

Permalink
Merge pull request #52 from srsolutionsag/fix/ilias-php-8-issues
Browse files Browse the repository at this point in the history
[FIX] type casting for incomplete or older objects
  • Loading branch information
jeph864 authored Nov 15, 2023
2 parents 355a1ef + ef3f759 commit 03122d3
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions classes/class.ilObjBigBlueButton.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,19 +177,19 @@ protected function doRead(): void
" WHERE id = ".$ilDB->quote($this->getId(), "integer")
);
while ($rec = $ilDB->fetchAssoc($set)) {
$this->setOnline($rec["is_online"]);
$this->setAttendeePwd($rec["attendeepwd"]);
$this->setModeratorPwd($rec["moderatorpwd"]);
$this->setWelcomeText($rec["welcometext"]);
$this->setMaxParticipants($rec["maxparticipants"]);
$this->setSequence($rec["sequence"]);
$this->setDialNumber($rec["dialnumber"] ?? '');
$this->setAccessCode($rec["accesscode"]);
$this->setMeetingDuration($rec["duration"]);
$this->setGuestLinkAllowed((bool)$rec["guestchoose"]);
$this->setDownloadAllowed((bool)$rec["allow_download"]);
$this->setPresentationUrl($rec["presentationurl"] ?? '');
$this->setPublish((bool)$rec["publish"]);
$this->setOnline((bool) ($rec["is_online"] ?? false));
$this->setAttendeePwd((string) ($rec["attendeepwd"] ?? ''));
$this->setModeratorPwd((string) ($rec["moderatorpwd"] ?? ''));
$this->setWelcomeText((string) $rec["welcometext"]);
$this->setMaxParticipants((int) ($rec["maxparticipants"] ?? 0));
$this->setSequence((string) ($rec["sequence"] ?? ''));
$this->setDialNumber((string) ($rec["dialnumber"] ?? ''));
$this->setAccessCode((string) ($rec["accesscode"] ?? ''));
$this->setMeetingDuration((int) ($rec["duration"] ?? 0));
$this->setGuestLinkAllowed((bool) $rec["guestchoose"]);
$this->setDownloadAllowed((bool) $rec["allow_download"]);
$this->setPresentationUrl((string) ($rec["presentationurl"] ?? ''));
$this->setPublish((bool) ($rec["publish"] ?? false));
}

$result = $ilDB->query("SELECT * FROM rep_robj_xbbb_conf");
Expand Down

0 comments on commit 03122d3

Please sign in to comment.