Update fax_edit.php
This commit is contained in:
parent
3f428583ef
commit
4a9826866b
|
|
@ -274,7 +274,9 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||
if (strlen($fax_forward_number) > 0) {
|
||||
$sql .= "fax_forward_number, ";
|
||||
}
|
||||
if (permission_exists('fax_send_greeting')) {
|
||||
$sql .= "fax_send_greeting,";
|
||||
}
|
||||
$sql .= "fax_send_channels,";
|
||||
$sql .= "fax_description ";
|
||||
$sql .= ")";
|
||||
|
|
@ -307,7 +309,9 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||
if (strlen($fax_forward_number) > 0) {
|
||||
$sql .= "'$fax_forward_number', ";
|
||||
}
|
||||
if (permission_exists('fax_send_greeting')) {
|
||||
$sql .= (strlen($fax_send_greeting)==0?'NULL':"'$fax_send_greeting'") . ",";
|
||||
}
|
||||
$sql .= (strlen($fax_send_channels)==0?'NULL':"'$fax_send_channels'") . ",";
|
||||
|
||||
$sql .= "'$fax_description' ";
|
||||
|
|
@ -350,8 +354,10 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||
else {
|
||||
$sql .= "fax_forward_number = null, ";
|
||||
}
|
||||
if (permission_exists('fax_send_greeting')) {
|
||||
$tmp = strlen($fax_send_greeting)==0?'NULL':"'$fax_send_greeting'";
|
||||
$sql .= "fax_send_greeting = $tmp,";
|
||||
}
|
||||
$tmp = strlen($fax_send_channels)==0?'NULL':"'$fax_send_channels'";
|
||||
$sql .= "fax_send_channels = $tmp,";
|
||||
|
||||
|
|
@ -675,6 +681,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||
}
|
||||
}
|
||||
|
||||
if (permission_exists('fax_send_greeting')) {
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
||||
echo " ".$text['label-fax_send_greeting']."\n";
|
||||
|
|
@ -786,6 +793,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||
echo " ".$text['description-fax_send_greeting']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
}
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
||||
|
|
|
|||
Loading…
Reference in New Issue