Fix the gateway delete.

This commit is contained in:
Mark Crane
2015-01-22 11:26:06 +00:00
parent d3ac5a78df
commit 438c015578

View File

@@ -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);