Fix conference room pin numbers
This commit is contained in:
parent
821dd7ed08
commit
49e8aa9863
|
|
@ -151,13 +151,14 @@
|
|||
}
|
||||
}
|
||||
|
||||
//generate the pins
|
||||
if (!empty($conference_center_uuid) && is_uuid($conference_center_uuid)) {
|
||||
//generate the pin number length
|
||||
$sql = "select conference_center_pin_length ";
|
||||
$sql .= "from v_conference_centers ";
|
||||
$sql .= "where domain_uuid = :domain_uuid ";
|
||||
if (!empty($conference_center_uuid) && is_uuid($conference_center_uuid)) {
|
||||
$sql .= "and conference_center_uuid = :conference_center_uuid ";
|
||||
$parameters['conference_center_uuid'] = $conference_center_uuid;
|
||||
}
|
||||
$parameters['domain_uuid'] = $_SESSION['domain_uuid'];
|
||||
$database = new database;
|
||||
$row = $database->select($sql, $parameters, 'row');
|
||||
|
|
@ -165,13 +166,14 @@
|
|||
$pin_length = $row['conference_center_pin_length'];
|
||||
}
|
||||
unset($sql, $parameters);
|
||||
|
||||
//generate the pin numbers
|
||||
if (empty($moderator_pin)) {
|
||||
$moderator_pin = get_conference_pin($pin_length, $conference_room_uuid ?? null);
|
||||
}
|
||||
if (empty($participant_pin)) {
|
||||
$participant_pin = get_conference_pin($pin_length, $conference_room_uuid ?? null);
|
||||
}
|
||||
}
|
||||
|
||||
//delete the user
|
||||
if (!empty($_GET["a"]) && $_GET["a"] == "delete" && permission_exists('conference_room_delete')) {
|
||||
|
|
@ -202,10 +204,13 @@
|
|||
return;
|
||||
}
|
||||
|
||||
|
||||
//save the changes from the HTTP POST
|
||||
if (!empty($_POST) && empty($_POST["persistformvar"])) {
|
||||
|
||||
//define the variable
|
||||
$msg = '';
|
||||
|
||||
//get the conference rooom ID
|
||||
if ($action == "update") {
|
||||
$conference_room_uuid = $_POST["conference_room_uuid"];
|
||||
}
|
||||
|
|
@ -456,7 +461,6 @@ if (!empty($_POST) && empty($_POST["persistformvar"])) {
|
|||
//redirect
|
||||
header("Location: conference_room_edit.php?id=".escape($conference_room_uuid));
|
||||
exit;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue