mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Remove the destination_number from the SQL where
This commit is contained in:
@@ -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']."<br>\n"; }
|
if (strlen($destination_enabled) == 0) { $msg .= $text['message-required']." ".$text['label-destination_enabled']."<br>\n"; }
|
||||||
|
|
||||||
//get the current destination_number
|
//get the current destination_number
|
||||||
|
$db_destination_number = '';
|
||||||
$sql = "select destination_number from v_destinations ";
|
$sql = "select destination_number from v_destinations ";
|
||||||
$sql .= "where destination_uuid = '".$destination_uuid."' ";
|
$sql .= "where destination_uuid = '".$destination_uuid."' ";
|
||||||
$sql .= "and destination_number = '".$destination_number."' ";
|
|
||||||
$prep_statement = $db->prepare($sql);
|
$prep_statement = $db->prepare($sql);
|
||||||
if ($prep_statement) {
|
if ($prep_statement) {
|
||||||
$prep_statement->execute();
|
$prep_statement->execute();
|
||||||
|
|||||||
Reference in New Issue
Block a user