Save the Call Center XML only if the directory path has a value.
This commit is contained in:
parent
71ab763488
commit
a6fe826fe2
|
|
@ -2172,6 +2172,7 @@ if (!function_exists('save_call_center_xml')) {
|
|||
function save_call_center_xml() {
|
||||
global $db, $domain_uuid;
|
||||
|
||||
if (strlen($_SESSION['switch']['call_center']['dir']) > 0) {
|
||||
//include the classes
|
||||
include "app/dialplan/resources/classes/dialplan.php";
|
||||
|
||||
|
|
@ -2181,7 +2182,7 @@ if (!function_exists('save_call_center_xml')) {
|
|||
$result = $prep_statement->fetchAll(PDO::FETCH_ASSOC);
|
||||
$result_count = count($result);
|
||||
unset ($prep_statement, $sql);
|
||||
if ($result_count > 0) { //found results
|
||||
if ($result_count > 0) {
|
||||
foreach($result as $row) {
|
||||
//set the variables
|
||||
$call_center_queue_uuid = $row["call_center_queue_uuid"];
|
||||
|
|
@ -2484,7 +2485,6 @@ if (!function_exists('save_call_center_xml')) {
|
|||
if ($x > 0) {
|
||||
$v_agents .= "\n";
|
||||
$v_agents .= " ";
|
||||
|
||||
}
|
||||
|
||||
//get and then set the complete agent_contact with the call_timeout and when necessary confirm
|
||||
|
|
@ -2601,7 +2601,7 @@ if (!function_exists('save_call_center_xml')) {
|
|||
|
||||
//apply settings
|
||||
$_SESSION["reload_xml"] = true;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue