From 9ff05bd317004ddd52fededda2a31f2026a3c635 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Sat, 19 Jan 2013 06:27:18 +0000 Subject: [PATCH] Fix the destination delete. --- app/destinations/destinations_delete.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/destinations/destinations_delete.php b/app/destinations/destinations_delete.php index ee4b02a11f..2e8ccc858a 100644 --- a/app/destinations/destinations_delete.php +++ b/app/destinations/destinations_delete.php @@ -39,8 +39,8 @@ if (count($_GET)>0) { } //delete the destination - if (strlen($id)>0) { - $sql .= "delete from v_destinations "; + if (strlen($id) > 0) { + $sql = "delete from v_destinations "; $sql .= "where domain_uuid = '$domain_uuid' "; $sql .= "and destination_uuid = '$id' "; $prep_statement = $db->prepare(check_sql($sql));