Mitigate php warnings on call_center_queue_edit.php.

This commit is contained in:
Nate 2019-09-19 14:06:27 -06:00
parent dabf5966f0
commit 316f199d83
1 changed files with 30 additions and 26 deletions

View File

@ -225,6 +225,7 @@
//update the call centier tiers array
$x = 0;
if (is_array($_POST["call_center_tiers"]) && @sizeof($_POST["call_center_tiers"]) != 0) {
foreach ($_POST["call_center_tiers"] as $row) {
//add the domain_uuid
if (strlen($row["domain_uuid"]) == 0) {
@ -237,6 +238,7 @@
//increment the row
$x++;
}
}
//get the application and data
$action_array = explode(":",$queue_timeout_action);
@ -280,6 +282,7 @@
$array['call_center_queues'][0]['domain_uuid'] = $domain_uuid;
$y = 0;
if (is_array($_POST["call_center_tiers"]) && @sizeof($_POST["call_center_tiers"]) != 0) {
foreach ($_POST["call_center_tiers"] as $row) {
if (is_uuid($row['call_center_tier_uuid'])) {
$call_center_tier_uuid = $row['call_center_tier_uuid'];
@ -296,6 +299,7 @@
}
$y++;
}
}
//build the xml dialplan
$dialplan_xml = "<extension name=\"".$queue_name."\" continue=\"\" uuid=\"".$dialplan_uuid."\">\n";