Fix bug with destinations.

This commit is contained in:
Mark Crane 2012-11-14 00:11:39 +00:00
parent 4f08dede13
commit 94fc7b41d1
1 changed files with 6 additions and 2 deletions

View File

@ -100,7 +100,9 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
$sql .= "destination_caller_id_name, ";
$sql .= "destination_caller_id_number, ";
$sql .= "destination_context, ";
$sql .= "fax_uuid, ";
if (strlen($fax_uuid) > 0) {
$sql .= "fax_uuid, ";
}
$sql .= "destination_enabled, ";
$sql .= "destination_description ";
$sql .= ")";
@ -116,7 +118,9 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
$sql .= "'$destination_caller_id_name', ";
$sql .= "'$destination_caller_id_number', ";
$sql .= "'$destination_context', ";
$sql .= "'$fax_uuid', ";
if (strlen($fax_uuid) > 0) {
$sql .= "'$fax_uuid', ";
}
$sql .= "'$destination_enabled', ";
$sql .= "'$destination_description' ";
$sql .= ")";