Finish up the changes to the duplicate test.

This commit is contained in:
Mark Crane 2014-05-26 17:06:02 +00:00
parent 7f5d7e3e93
commit ea9c90587c
1 changed files with 9 additions and 8 deletions

View File

@ -79,8 +79,9 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
if (strlen($destination_enabled) == 0) { $msg .= $text['message-required']." ".$text['label-destination_enabled']."<br>\n"; }
//get the current destination_number
$sql = "select count(*) as num_rows from v_destinations ";
$sql .= "where destination_number = '".$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();