Mitigate php warnings on call_center_queue_edit.php.
This commit is contained in:
@@ -225,17 +225,19 @@
|
|||||||
|
|
||||||
//update the call centier tiers array
|
//update the call centier tiers array
|
||||||
$x = 0;
|
$x = 0;
|
||||||
foreach ($_POST["call_center_tiers"] as $row) {
|
if (is_array($_POST["call_center_tiers"]) && @sizeof($_POST["call_center_tiers"]) != 0) {
|
||||||
//add the domain_uuid
|
foreach ($_POST["call_center_tiers"] as $row) {
|
||||||
if (strlen($row["domain_uuid"]) == 0) {
|
//add the domain_uuid
|
||||||
$_POST["call_center_tiers"][$x]["domain_uuid"] = $_SESSION['domain_uuid'];
|
if (strlen($row["domain_uuid"]) == 0) {
|
||||||
}
|
$_POST["call_center_tiers"][$x]["domain_uuid"] = $_SESSION['domain_uuid'];
|
||||||
//unset ring_group_destination_uuid if the field has no value
|
}
|
||||||
if (strlen($row["call_center_agent_uuid"]) == 0) {
|
//unset ring_group_destination_uuid if the field has no value
|
||||||
unset($_POST["call_center_tiers"][$x]);
|
if (strlen($row["call_center_agent_uuid"]) == 0) {
|
||||||
}
|
unset($_POST["call_center_tiers"][$x]);
|
||||||
//increment the row
|
}
|
||||||
$x++;
|
//increment the row
|
||||||
|
$x++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//get the application and data
|
//get the application and data
|
||||||
@@ -280,21 +282,23 @@
|
|||||||
$array['call_center_queues'][0]['domain_uuid'] = $domain_uuid;
|
$array['call_center_queues'][0]['domain_uuid'] = $domain_uuid;
|
||||||
|
|
||||||
$y = 0;
|
$y = 0;
|
||||||
foreach ($_POST["call_center_tiers"] as $row) {
|
if (is_array($_POST["call_center_tiers"]) && @sizeof($_POST["call_center_tiers"]) != 0) {
|
||||||
if (is_uuid($row['call_center_tier_uuid'])) {
|
foreach ($_POST["call_center_tiers"] as $row) {
|
||||||
$call_center_tier_uuid = $row['call_center_tier_uuid'];
|
if (is_uuid($row['call_center_tier_uuid'])) {
|
||||||
|
$call_center_tier_uuid = $row['call_center_tier_uuid'];
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$call_center_tier_uuid = uuid();
|
||||||
|
}
|
||||||
|
if (strlen($row['call_center_agent_uuid']) > 0) {
|
||||||
|
$array["call_center_queues"][0]["call_center_tiers"][$y]["call_center_tier_uuid"] = $call_center_tier_uuid;
|
||||||
|
$array['call_center_queues'][0]["call_center_tiers"][$y]["call_center_agent_uuid"] = $row['call_center_agent_uuid'];
|
||||||
|
$array['call_center_queues'][0]["call_center_tiers"][$y]["tier_level"] = $row['tier_level'];
|
||||||
|
$array['call_center_queues'][0]["call_center_tiers"][$y]["tier_position"] = $row['tier_position'];
|
||||||
|
$array['call_center_queues'][0]["call_center_tiers"][$y]["domain_uuid"] = $_SESSION['domain_uuid'];
|
||||||
|
}
|
||||||
|
$y++;
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
$call_center_tier_uuid = uuid();
|
|
||||||
}
|
|
||||||
if (strlen($row['call_center_agent_uuid']) > 0) {
|
|
||||||
$array["call_center_queues"][0]["call_center_tiers"][$y]["call_center_tier_uuid"] = $call_center_tier_uuid;
|
|
||||||
$array['call_center_queues'][0]["call_center_tiers"][$y]["call_center_agent_uuid"] = $row['call_center_agent_uuid'];
|
|
||||||
$array['call_center_queues'][0]["call_center_tiers"][$y]["tier_level"] = $row['tier_level'];
|
|
||||||
$array['call_center_queues'][0]["call_center_tiers"][$y]["tier_position"] = $row['tier_position'];
|
|
||||||
$array['call_center_queues'][0]["call_center_tiers"][$y]["domain_uuid"] = $_SESSION['domain_uuid'];
|
|
||||||
}
|
|
||||||
$y++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//build the xml dialplan
|
//build the xml dialplan
|
||||||
@@ -1066,4 +1070,4 @@
|
|||||||
//include the footer
|
//include the footer
|
||||||
require_once "resources/footer.php";
|
require_once "resources/footer.php";
|
||||||
|
|
||||||
?>
|
?>
|
||||||
Reference in New Issue
Block a user