Update conference_room_delete.php
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
The Initial Developer of the Original Code is
|
The Initial Developer of the Original Code is
|
||||||
Mark J Crane <markjcrane@fusionpbx.com>
|
Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
Portions created by the Initial Developer are Copyright (C) 2008-2016
|
Portions created by the Initial Developer are Copyright (C) 2008-2019
|
||||||
the Initial Developer. All Rights Reserved.
|
the Initial Developer. All Rights Reserved.
|
||||||
|
|
||||||
Contributor(s):
|
Contributor(s):
|
||||||
@@ -43,25 +43,28 @@
|
|||||||
$text = $language->get();
|
$text = $language->get();
|
||||||
|
|
||||||
//get the id
|
//get the id
|
||||||
if (count($_GET) > 0) {
|
if (isset($_GET["id"]) && is_uuid($_GET["id"])) {
|
||||||
$id = check_str($_GET["id"]);
|
$id = $_GET["id"];
|
||||||
|
}
|
||||||
|
|
||||||
|
//get the domain_uuid
|
||||||
|
$domain_uuid = null;
|
||||||
|
if (isset($_SESSION['domain_uuid']) && is_uuid($_SESSION['domain_uuid'])) {
|
||||||
|
$domain_uuid = $_SESSION['domain_uuid'];
|
||||||
}
|
}
|
||||||
|
|
||||||
//delete the data
|
//delete the data
|
||||||
if (strlen($id) > 0) {
|
if (isset($id) && is_uuid($id)) {
|
||||||
//get the meeting_uuid
|
//get the meeting_uuid
|
||||||
if (count($_GET) > 0 && $_POST["persistformvar"] != "true") {
|
if (["persistformvar"] != "true") {
|
||||||
$conference_room_uuid = check_str($_GET["id"]);
|
|
||||||
$sql = "select * from v_conference_rooms ";
|
$sql = "select * from v_conference_rooms ";
|
||||||
$sql .= "where domain_uuid = '$domain_uuid' ";
|
$sql .= "where domain_uuid = :domain_uuid ";
|
||||||
$sql .= "and conference_room_uuid = '$conference_room_uuid' ";
|
$sql .= "and conference_room_uuid = :conference_room_uuid ";
|
||||||
$prep_statement = $db->prepare(check_sql($sql));
|
$parameters['domain_uuid'] = $domain_uuid;
|
||||||
$prep_statement->execute();
|
$parameters['conference_room_uuid'] = $id;
|
||||||
$result = $prep_statement->fetchAll();
|
$database = new database;
|
||||||
foreach ($result as &$row) {
|
$meeting_uuid = $database->select($sql, $parameters, 'column');
|
||||||
$meeting_uuid = $row["meeting_uuid"];
|
unset ($parameters);
|
||||||
}
|
|
||||||
unset ($prep_statement);
|
|
||||||
}
|
}
|
||||||
//echo "meeting_uuid: ".$meeting_uuid."<br />\n";
|
//echo "meeting_uuid: ".$meeting_uuid."<br />\n";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user