Skip to content

Commit

Permalink
session management: fix bugs (#47)
Browse files Browse the repository at this point in the history
* enable proxy access

* temporary fix for server errors

* fix insert statement & enable deleting db tables
  • Loading branch information
jeph864 authored Apr 26, 2023
1 parent 4c0817f commit b8f4c1a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion classes/class.ilBigBlueButtonConfigGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public function save()
$num = $ilDB->numRows($result);
if ($num == 0) {
$ilDB->manipulate("INSERT INTO rep_robj_xbbb_conf ".
"(id, svrpublicurl, svrsalt, choose_recording) VALUES (".
"(id, svrpublicurl, svrsalt, choose_recording, guestglobalchoose, sess_enable_max_concurrent, enable_userlimit, sess_max_concurrent, sess_msg_concurrent ) VALUES (".
$ilDB->quote(1, "integer").",". // id
$ilDB->quote($setPublicURL, "text").",". //public url
$ilDB->quote($setSalt, "text").",". //salt
Expand Down
4 changes: 2 additions & 2 deletions classes/class.ilBigBlueButtonPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ protected function uninstallCustom()
{
global $ilDB;
// removes plugin tables if they exist
/* if($ilDB->tableExists('rep_robj_xbbb_data'))
if($ilDB->tableExists('rep_robj_xbbb_data'))
$ilDB->dropTable('rep_robj_xbbb_data');

if($ilDB->tableExists('rep_robj_xbbb_conf'))
$ilDB->dropTable('rep_robj_xbbb_conf');*/
$ilDB->dropTable('rep_robj_xbbb_conf');
return true;
}
}
11 changes: 9 additions & 2 deletions classes/class.ilBigBlueButtonProtocol.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,15 @@ public function isMeetingRecorded($object)
$meetingID=$object->getBBBId();
$mPW=$object->getModeratorPwd();
;
$meetingInfo = $this->bbb->getMeetingInfo(new GetMeetingInfoParameters($meetingID, $mPW));
return $meetingInfo->success();
$meetingInfo= null;
try{
$meetingInfo = $this->bbb->getMeetingInfo(new GetMeetingInfoParameters($meetingID, $mPW));
return $meetingInfo->success();
}catch(Exception $e){
return $meetingInfo;
}


}


Expand Down

0 comments on commit b8f4c1a

Please sign in to comment.