Prevent Conference Room Pin Number duplicates
This commit is contained in:
parent
18bab0ac0c
commit
56fa094e59
|
|
@ -170,7 +170,9 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
||||||
//make sure the moderator pin number is unique
|
//make sure the moderator pin number is unique
|
||||||
$sql = "select count(*) as num_rows from v_meetings ";
|
$sql = "select count(*) as num_rows from v_meetings ";
|
||||||
$sql .= "where domain_uuid = '".$_SESSION['domain_uuid']."' ";
|
$sql .= "where domain_uuid = '".$_SESSION['domain_uuid']."' ";
|
||||||
$sql .= "and meeting_uuid <> '".$meeting_uuid."' ";
|
if (strlen($meeting_uuid) > 0) {
|
||||||
|
$sql .= "and meeting_uuid <> '".$meeting_uuid."' ";
|
||||||
|
}
|
||||||
$sql .= "and (moderator_pin = '".$moderator_pin."' or participant_pin = '".$moderator_pin."') ";
|
$sql .= "and (moderator_pin = '".$moderator_pin."' or participant_pin = '".$moderator_pin."') ";
|
||||||
$prep_statement = $db->prepare(check_sql($sql));
|
$prep_statement = $db->prepare(check_sql($sql));
|
||||||
if ($prep_statement) {
|
if ($prep_statement) {
|
||||||
|
|
@ -184,7 +186,9 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
||||||
//make sure the participant pin number is unique
|
//make sure the participant pin number is unique
|
||||||
$sql = "select count(*) as num_rows from v_meetings ";
|
$sql = "select count(*) as num_rows from v_meetings ";
|
||||||
$sql .= "where domain_uuid = '".$_SESSION['domain_uuid']."' ";
|
$sql .= "where domain_uuid = '".$_SESSION['domain_uuid']."' ";
|
||||||
$sql .= "and meeting_uuid <> '".$meeting_uuid."' ";
|
if (strlen($meeting_uuid) > 0) {
|
||||||
|
$sql .= "and meeting_uuid <> '".$meeting_uuid."' ";
|
||||||
|
}
|
||||||
$sql .= "and (moderator_pin = '".$participant_pin."' or participant_pin = '".$participant_pin."') ";
|
$sql .= "and (moderator_pin = '".$participant_pin."' or participant_pin = '".$participant_pin."') ";
|
||||||
$prep_statement = $db->prepare(check_sql($sql));
|
$prep_statement = $db->prepare(check_sql($sql));
|
||||||
if ($prep_statement) {
|
if ($prep_statement) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue