diff --git a/app/calls/v_call_edit.php b/app/calls/v_call_edit.php
index 0b86698678..32b0bf4617 100644
--- a/app/calls/v_call_edit.php
+++ b/app/calls/v_call_edit.php
@@ -34,23 +34,24 @@ else {
exit;
}
-function destination_select($select_name, $select_value, $select_default) {
- if (strlen($select_value) == 0) { $select_value = $select_default; }
- echo " \n";
-}
//get the extension_uuid
$extension_uuid = $_REQUEST["id"];
@@ -286,9 +287,9 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
unset ($prep_statement);
//include the classes
- include "includes/classes/call_forward.php";
- include "includes/classes/follow_me.php";
- include "includes/classes/do_not_disturb.php";
+ include "includes/classes/switch_call_forward.php";
+ include "includes/classes/switch_follow_me.php";
+ include "includes/classes/switch_do_not_disturb.php";
//call forward config
if (permission_exists('call_forward')) {
diff --git a/app/calls/v_calls.php b/app/calls/v_calls.php
index c4a329b6bf..d0b1d39937 100644
--- a/app/calls/v_calls.php
+++ b/app/calls/v_calls.php
@@ -57,8 +57,7 @@ $order = $_GET["order"];
echo "
";
}
- $sql = "";
- $sql .= " select * from v_extensions ";
+ $sql = "select * from v_extensions ";
$sql .= "where domain_uuid = '$domain_uuid' ";
$sql .= "and enabled = 'true' ";
if (!(if_group("admin") || if_group("superadmin"))) {
@@ -96,8 +95,7 @@ $order = $_GET["order"];
list($paging_controls, $rows_per_page, $var_3) = paging($num_rows, $param, $rows_per_page);
$offset = $rows_per_page * $page;
- $sql = "";
- $sql .= " select * from v_extensions ";
+ $sql = "select * from v_extensions ";
$sql .= "where domain_uuid = '$domain_uuid' ";
$sql .= "and enabled = 'true' ";
if (!(if_group("admin") || if_group("superadmin"))) {
@@ -129,7 +127,6 @@ $order = $_GET["order"];
$result_count = count($result);
unset ($prep_statement, $sql);
-
$c = 0;
$row_style["0"] = "row_style0";
$row_style["1"] = "row_style1";
@@ -141,27 +138,24 @@ $order = $_GET["order"];
echo "