Fix FlintCI

pull/3235/head
Nosolored 6 years ago
parent 459c5b1ec5
commit 2d3077f8a9
  1. 12
      plugin/bbb/cron_close_meeting.php
  2. 6
      plugin/bbb/listing.php

@ -1,6 +1,6 @@
<?php
/**
* This script initiates a video conference session, calling the BigBlueButton API
* This script initiates a video conference session, calling the BigBlueButton API.
* @package chamilo.plugin.bigbluebutton
*/
@ -25,17 +25,17 @@ if ($bbb->pluginEnabled) {
$meetingBBB = $bbb->getMeetingInfo(
[
'meetingId' => $value['remote_id'],
'password' => $value['moderator_pw']
'password' => $value['moderator_pw'],
]
);
if ($meetingBBB === false) {
//checking with the remote_id didn't work, so just in case and
// to provide backwards support, check with the id
$params = array(
$params = [
'meetingId' => $value['id'],
'password' => $value['moderator_pw']
);
'password' => $value['moderator_pw'],
];
$meetingBBB = $bbb->getMeetingInfo($params);
}
@ -55,7 +55,7 @@ if ($bbb->pluginEnabled) {
$roomTable,
[
'where' => [
'meeting_id = ? AND participant_id = ?' => [$meetingId, $participantId]
'meeting_id = ? AND participant_id = ?' => [$meetingId, $participantId],
],
'order' => 'id DESC',
],

@ -169,7 +169,7 @@ if ($conferenceManager) {
$meetingBBB = $bbb->getMeetingInfo(
[
'meetingId' => $remoteId,
'password' => $pass
'password' => $pass,
]
);
@ -179,7 +179,7 @@ if ($conferenceManager) {
$params = [
'meetingId' => $meetingId,
// -- REQUIRED - The unique id for the meeting
'password' => $pass
'password' => $pass,
// -- REQUIRED - The moderator password for the meeting
];
$meetingBBB = $bbb->getMeetingInfo($params);
@ -194,7 +194,7 @@ if ($conferenceManager) {
$roomTable,
[
'where' => [
'meeting_id = ? AND participant_id = ?' => [$meetingId, $participantId]
'meeting_id = ? AND participant_id = ?' => [$meetingId, $participantId],
],
'order' => 'id DESC',
],

Loading…
Cancel
Save