Fix the device delete

This commit is contained in:
Mark Crane 2014-05-22 04:52:42 +00:00
parent e4df8a5ad7
commit 3e5c77bb12
1 changed files with 1 additions and 2 deletions

View File

@ -47,8 +47,7 @@ else {
//delete the data
if (strlen($id)>0) {
$sql = "delete from v_devices ";
$sql .= "where domain_uuid = '$domain_uuid' ";
$sql .= "and device_uuid = '$id' ";
$sql .= "where device_uuid = '$id' ";
$prep_statement = $db->prepare(check_sql($sql));
$prep_statement->execute();
unset($sql);