mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Fix the gateway delete.
This commit is contained in:
@@ -44,8 +44,7 @@ if (strlen($_GET["id"])>0) {
|
||||
|
||||
//get the gateway name
|
||||
$sql = "select * from v_gateways ";
|
||||
$sql .= "where domain_uuid = '$domain_uuid' ";
|
||||
$sql .= "and gateway_uuid = '$id' ";
|
||||
$sql .= "where gateway_uuid = '$id' ";
|
||||
$prep_statement = $db->prepare(check_sql($sql));
|
||||
$prep_statement->execute();
|
||||
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
||||
@@ -76,8 +75,7 @@ if (strlen($_GET["id"])>0) {
|
||||
|
||||
//delete the gateway
|
||||
$sql = "delete from v_gateways ";
|
||||
$sql .= "where domain_uuid = '$domain_uuid' ";
|
||||
$sql .= "and gateway_uuid = '$id' ";
|
||||
$sql .= "where gateway_uuid = '$id' ";
|
||||
$db->query($sql);
|
||||
unset($sql);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user