Skip to content

Commit

Permalink
CONTRIB-9081: Fix BBB index page (#608)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssj365 authored Oct 3, 2023
1 parent 2d1a528 commit 7ead54a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions classes/meeting.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,9 @@ public function update_cache() {
/**
* Get meeting attendees
*
* @return mixed
* @return array[]
*/
public function get_attendees() {
public function get_attendees(): array {
return $this->get_meeting_info()->attendees ?? [];
}

Expand Down Expand Up @@ -275,7 +275,7 @@ protected function do_get_meeting_info(bool $updatecache = false): stdClass {
}
$meetinginfo->attendees = [];
if (!empty($info['attendees'])) {
// Make sure attendees is an array of object, not a simpleXML object.
// Ensure each returned attendee is cast to an array, rather than a simpleXML object.
foreach ($info['attendees'] as $attendee) {
$meetinginfo->attendees[] = (array) $attendee;
}
Expand Down
4 changes: 2 additions & 2 deletions classes/output/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ protected function get_room_attendee_list(meeting $meeting, string $role): strin
$attendees = [];

foreach ($meeting->get_attendees() as $attendee) {
if ((string) $attendee->role == $role) {
$attendees[] = $attendee->fullName;
if (strcmp((string) $attendee['role'], $role) === 0) {
$attendees[] = $attendee['fullName'];
}
}

Expand Down

0 comments on commit 7ead54a

Please sign in to comment.