Fix Dialplan Destination so that it won't fail if fax app is not installed.
This commit is contained in:
parent
b84ea76c0b
commit
2aae2e9714
|
|
@ -637,33 +637,35 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
||||||
echo "</td>\n";
|
echo "</td>\n";
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
|
|
||||||
echo "<tr>\n";
|
if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/app/fax/app_config.php")){
|
||||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
echo "<tr>\n";
|
||||||
echo " ".$text['label-fax_uuid'].":\n";
|
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||||
echo "</td>\n";
|
echo " ".$text['label-fax_uuid'].":\n";
|
||||||
echo "<td class='vtable' align='left'>\n";
|
echo "</td>\n";
|
||||||
$sql = "select * from v_fax ";
|
echo "<td class='vtable' align='left'>\n";
|
||||||
$sql .= "where domain_uuid = '".$_SESSION["domain_uuid"]."' ";
|
$sql = "select * from v_fax ";
|
||||||
$sql .= "order by fax_name asc ";
|
$sql .= "where domain_uuid = '".$_SESSION["domain_uuid"]."' ";
|
||||||
$prep_statement = $db->prepare(check_sql($sql));
|
$sql .= "order by fax_name asc ";
|
||||||
$prep_statement->execute();
|
$prep_statement = $db->prepare(check_sql($sql));
|
||||||
$result = $prep_statement->fetchAll(PDO::FETCH_ASSOC);
|
$prep_statement->execute();
|
||||||
echo " <select name='fax_uuid' id='fax_uuid' class='formfld' style='".$select_style."'>\n";
|
$result = $prep_statement->fetchAll(PDO::FETCH_ASSOC);
|
||||||
echo " <option value=''></option>\n";
|
echo " <select name='fax_uuid' id='fax_uuid' class='formfld' style='".$select_style."'>\n";
|
||||||
foreach ($result as &$row) {
|
echo " <option value=''></option>\n";
|
||||||
if ($row["fax_uuid"] == $fax_uuid) {
|
foreach ($result as &$row) {
|
||||||
echo " <option value='".$row["fax_uuid"]."' selected='selected'>".$row["fax_extension"]." ".$row["fax_name"]."</option>\n";
|
if ($row["fax_uuid"] == $fax_uuid) {
|
||||||
}
|
echo " <option value='".$row["fax_uuid"]."' selected='selected'>".$row["fax_extension"]." ".$row["fax_name"]."</option>\n";
|
||||||
else {
|
}
|
||||||
echo " <option value='".$row["fax_uuid"]."'>".$row["fax_extension"]." ".$row["fax_name"]."</option>\n";
|
else {
|
||||||
|
echo " <option value='".$row["fax_uuid"]."'>".$row["fax_extension"]." ".$row["fax_name"]."</option>\n";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
echo " </select>\n";
|
||||||
|
unset ($prep_statement, $extension);
|
||||||
|
echo " <br />\n";
|
||||||
|
echo " ".$text['description-fax_uuid']."\n";
|
||||||
|
echo "</td>\n";
|
||||||
|
echo "</tr>\n";
|
||||||
}
|
}
|
||||||
echo " </select>\n";
|
|
||||||
unset ($prep_statement, $extension);
|
|
||||||
echo " <br />\n";
|
|
||||||
echo " ".$text['description-fax_uuid']."\n";
|
|
||||||
echo "</td>\n";
|
|
||||||
echo "</tr>\n";
|
|
||||||
|
|
||||||
echo "<tr>\n";
|
echo "<tr>\n";
|
||||||
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue