Update extension_delete.php (#2314)

Delete the extension settings from v_follow_me and v_follow_me_destinations.
This commit is contained in:
konradSC
2017-01-19 14:57:58 -05:00
committed by FusionPBX
parent d100458123
commit 846f2e92cb

View File

@@ -60,6 +60,7 @@
foreach ($extensions as &$row) {
$extension = $row["extension"];
$user_context = $row["user_context"];
$follow_me_uuid = $row["follow_me_uuid"];
}
unset ($prep_statement);
}
@@ -133,6 +134,21 @@
$prep_statement = $db->prepare(check_sql($sql));
$prep_statement->execute();
unset($prep_statement, $sql);
//delete the follow-me
$sql = "delete from v_follow_me_destinations ";
$sql .= "where domain_uuid = '".$_SESSION['domain_uuid']."' ";
$sql .= "and follow_me_uuid = '".$follow_me_uuid."' ";
$prep_statement = $db->prepare(check_sql($sql));
$prep_statement->execute();
unset($prep_statement, $sql);
$sql = "delete from v_follow_me ";
$sql .= "where domain_uuid = '".$_SESSION['domain_uuid']."' ";
$sql .= "and follow_me_uuid = '".$follow_me_uuid."' ";
$prep_statement = $db->prepare(check_sql($sql));
$prep_statement->execute();
unset($prep_statement, $sql);
}
}