From 77c74531d18050d85050df6869feca2f7a45f780 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 16 Jul 2019 09:26:42 -0600 Subject: [PATCH] Update destination_edit.php --- app/destinations/destination_edit.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/destinations/destination_edit.php b/app/destinations/destination_edit.php index 1476a29629..5b19fdf26a 100644 --- a/app/destinations/destination_edit.php +++ b/app/destinations/destination_edit.php @@ -164,6 +164,7 @@ if ($destination_type == 'inbound' && $destination_number != $db_destination_number) { $sql = "select count(*) as num_rows from v_destinations "; $sql .= "where destination_number = '".$destination_number."' "; + $sql .= "and destination_type = 'inbound' "; $prep_statement = $db->prepare($sql); if ($prep_statement) { $prep_statement->execute();