Make the indentation on the dialplan delete more consistent with the rest of the code base.

This commit is contained in:
Mark Crane 2015-01-09 22:09:58 +00:00
parent bb1886ad63
commit dd51a8237b
1 changed files with 56 additions and 55 deletions

View File

@ -48,11 +48,11 @@ else {
$dialplan_uuids = $_REQUEST["id"];
$app_uuid = check_str($_REQUEST['app_uuid']);
if (sizeof($dialplan_uuids) > 0) {
//delete the dialplans
if (sizeof($dialplan_uuids) > 0) {
//get dialplan contexts
foreach ($dialplan_uuids as $dialplan_uuid) {
//check each
$dialplan_uuid = check_str($dialplan_uuid);
@ -110,9 +110,10 @@ if (sizeof($dialplan_uuids) > 0) {
}
}
}
}
}
//redirect the browser
$_SESSION["message"] = $text['message-delete'].(($dialplans_deleted > 1) ? ": ".$dialplans_deleted : null);
header("Location: ".PROJECT_PATH."/app/dialplan/dialplans.php".(($app_uuid != '') ? "?app_uuid=".$app_uuid : null));
$_SESSION["message"] = $text['message-delete'].(($dialplans_deleted > 1) ? ": ".$dialplans_deleted : null);
header("Location: ".PROJECT_PATH."/app/dialplan/dialplans.php".(($app_uuid != '') ? "?app_uuid=".$app_uuid : null));
?>