From 205ffa9191e39ddce5f9a0d1400909ca3333c4b2 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Mon, 26 May 2014 17:08:53 +0000 Subject: [PATCH] Remove the destination_number from the SQL where --- app/destinations/destination_edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/destinations/destination_edit.php b/app/destinations/destination_edit.php index c2fa9a8a1c..7880c69417 100644 --- a/app/destinations/destination_edit.php +++ b/app/destinations/destination_edit.php @@ -79,9 +79,9 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { if (strlen($destination_enabled) == 0) { $msg .= $text['message-required']." ".$text['label-destination_enabled']."
\n"; } //get the current destination_number + $db_destination_number = ''; $sql = "select destination_number from v_destinations "; $sql .= "where destination_uuid = '".$destination_uuid."' "; - $sql .= "and destination_number = '".$destination_number."' "; $prep_statement = $db->prepare($sql); if ($prep_statement) { $prep_statement->execute();