Skip to content

Commit

Permalink
Fix out_at update when teacher closes room
Browse files Browse the repository at this point in the history
  • Loading branch information
nosolored committed Nov 4, 2020
1 parent 0a4f8ec commit 0fd5972
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/bbb/lib/bbb.lib.php
Expand Up @@ -1221,7 +1221,7 @@ public function endMeeting($id, $courseCode = null)

// Update users with in_at y ou_at field equal
$roomTable = Database::get_main_table('plugin_bbb_room');
$conditions['where'] = ['meeting_id=? AND in_at=out_at' => [$id]];
$conditions['where'] = ['meeting_id=? AND in_at=out_at AND close=?' => [$id, BBBPlugin::ROOM_OPEN]];
$roomList = Database::select(
'*',
$roomTable,
Expand Down

0 comments on commit 0fd5972

Please sign in to comment.