Update conference_profile_delete.php

Delete the child data for conference profiles.
This commit is contained in:
FusionPBX 2016-07-17 14:23:22 -06:00 committed by GitHub
parent ea18c47c2b
commit 9f6e767a6e
1 changed files with 12 additions and 4 deletions

View File

@ -19,16 +19,24 @@
$text = $language->get(); $text = $language->get();
//get the id //get the id
if (count($_GET)>0) { if (count($_GET) > 0) {
$id = check_str($_GET["id"]); $id = check_str($_GET["id"]);
} }
//delete the data //delete the data
if (strlen($id)>0) { if (strlen($id) > 0) {
//delete the conference_profile_params
$sql = "delete from v_conference_profile_params ";
$sql .= "where conference_profile_uuid = '$id' ";
//$sql .= "and domain_uuid = '$domain_uuid' ";
$prep_statement = $db->prepare(check_sql($sql));
$prep_statement->execute();
unset($sql);
//delete conference_profile //delete conference_profile
$sql = "delete from v_conference_profiles "; $sql = "delete from v_conference_profiles ";
$sql .= "where conference_profile_uuid = '$id' "; $sql .= "where conference_profile_uuid = '$id' ";
$sql .= "and domain_uuid = '$domain_uuid' "; //$sql .= "and domain_uuid = '$domain_uuid' ";
$prep_statement = $db->prepare(check_sql($sql)); $prep_statement = $db->prepare(check_sql($sql));
$prep_statement->execute(); $prep_statement->execute();
unset($sql); unset($sql);