Update conference_profile_param_edit.php

Add a few more comments end a little more indentation.
This commit is contained in:
FusionPBX 2016-07-16 23:57:03 -06:00 committed by GitHub
parent fa6ba3d019
commit 6044d40dcc
1 changed files with 77 additions and 75 deletions

View File

@ -40,14 +40,16 @@
$profile_param_description = check_str($_POST["profile_param_description"]);
}
if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
//process the http post if it exists
if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
$msg = '';
//get the uuid
if ($action == "update") {
$conference_profile_param_uuid = check_str($_POST["conference_profile_param_uuid"]);
}
//check for all required data
$msg = '';
if (strlen($profile_param_name) == 0) { $msg .= $text['message-required']." ".$text['label-profile_param_name']."<br>\n"; }
if (strlen($profile_param_value) == 0) { $msg .= $text['message-required']." ".$text['label-profile_param_value']."<br>\n"; }
if (strlen($profile_param_enabled) == 0) { $msg .= $text['message-required']." ".$text['label-profile_param_enabled']."<br>\n"; }
@ -115,7 +117,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
} //if ($action == "update")
} //if ($_POST["persistformvar"] != "true")
} //(count($_POST)>0 && strlen($_POST["persistformvar"]) == 0)
} //(count($_POST)>0 && strlen($_POST["persistformvar"]) == 0)
//pre-populate the form
if (count($_GET) > 0 && $_POST["persistformvar"] != "true") {