Formatting

This commit is contained in:
koldoa 2015-10-22 10:54:19 +02:00
parent f11d6f0e09
commit 939c6e31b5
1 changed files with 5 additions and 17 deletions

View File

@ -70,8 +70,6 @@ require_once "resources/header.php";
$dialplan_enabled = check_str($_POST["dialplan_enabled"]);
$dialplan_description = check_str($_POST["dialplan_description"]);
}
if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
@ -252,15 +250,12 @@ require_once "resources/header.php";
//set group and order number
$dialplan_detail_group_user = check_str($_POST["group_$group_id"]);
if($dialplan_detail_group_user!='') {
$dialplan_detail_group = $dialplan_detail_group_user;
} else {
$dialplan_detail_group = $group_id;
}
$dialplan_detail_order = 0;
foreach ($conditions as $cond_num => $cond_var) {
@ -303,7 +298,6 @@ require_once "resources/header.php";
}
//add condition to query string
$dialplan_detail_order += 10;
$sql .= ", ( ";
$sql .= "'".$domain_uuid."', ";
@ -375,11 +369,6 @@ require_once "resources/header.php";
$dialplan_action_data = '';
}
//add group action to query
$dialplan_detail_order += 10;
$sql .= ", ( ";
@ -523,7 +512,6 @@ require_once "resources/header.php";
$prep_statement->execute();
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
$result_count = count($result);
unset ($prep_statement, $sql);
//load current conditions into array (combined by group), and retrieve action and anti-action