|
|
|
|
@ -219,12 +219,14 @@ if ($conferenceManager) { |
|
|
|
|
|
|
|
|
|
if (!empty($roomData)) { |
|
|
|
|
$roomId = $roomData['id']; |
|
|
|
|
if (!empty($roomId)) { |
|
|
|
|
Database::update( |
|
|
|
|
$roomTable, |
|
|
|
|
['out_at' => api_get_utc_datetime()], |
|
|
|
|
['id = ? ' => $roomId] |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
$i++; |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
@ -246,12 +248,14 @@ if ($conferenceManager) { |
|
|
|
|
|
|
|
|
|
if (!empty($roomData)) { |
|
|
|
|
$roomId = $roomData['id']; |
|
|
|
|
if (!empty($roomId)) { |
|
|
|
|
Database::update( |
|
|
|
|
$roomTable, |
|
|
|
|
['out_at' => api_get_utc_datetime(), 'close' => BBBPlugin::ROOM_CLOSE], |
|
|
|
|
['id = ? ' => $roomId] |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$message = Display::return_message( |
|
|
|
|
$plugin->get_lang('RoomClosed').'<br />'.$plugin->get_lang('RoomClosedComment'), |
|
|
|
|
@ -300,11 +304,12 @@ if ($conferenceManager) { |
|
|
|
|
|
|
|
|
|
$i = 0; |
|
|
|
|
foreach ($roomData as $item) { |
|
|
|
|
$roomId = $roomData['id']; |
|
|
|
|
$roomId = $item['id']; |
|
|
|
|
if (!empty($roomId)) { |
|
|
|
|
if ($i == 0) { |
|
|
|
|
Database::update( |
|
|
|
|
$roomTable, |
|
|
|
|
['out_at' => api_get_utc_datetime()], |
|
|
|
|
['out_at' => api_get_utc_datetime(), 'close' => BBBPlugin::ROOM_CLOSE], |
|
|
|
|
['id = ? ' => $roomId] |
|
|
|
|
); |
|
|
|
|
} else { |
|
|
|
|
@ -312,6 +317,7 @@ if ($conferenceManager) { |
|
|
|
|
} |
|
|
|
|
$i++; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$message = Display::return_message( |
|
|
|
|
$plugin->get_lang('RoomExit'), |
|
|
|
|
|