mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Delete child data when deleting access controls. Improve the indentation.
This commit is contained in:
@@ -22,18 +22,17 @@ else {
|
||||
$access_control_uuid = check_str($_GET["access_control_uuid"]);
|
||||
}
|
||||
|
||||
if (strlen($id)>0) {
|
||||
//delete access_control_node
|
||||
//delete access_control_node
|
||||
if (strlen($id)>0) {
|
||||
$sql = "delete from v_access_control_nodes ";
|
||||
$sql .= "where access_control_node_uuid = '$id' ";
|
||||
$prep_statement = $db->prepare(check_sql($sql));
|
||||
$prep_statement->execute();
|
||||
unset($sql);
|
||||
}
|
||||
}
|
||||
|
||||
//redirect the user
|
||||
$_SESSION['message'] = $text['message-delete'];
|
||||
header('Location: access_control_node_edit.php?id='.$access_control_uuid);
|
||||
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user