Update call_center_queue_edit.php

This commit is contained in:
FusionPBX 2019-08-15 03:45:50 -06:00 committed by GitHub
parent 336eea2d61
commit 8436ef7fcf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -134,8 +134,10 @@
//delete the agent over event socket
if ($fp) {
//callcenter_config tier del [queue_name] [agent_name]
$cmd = "api callcenter_config tier del ".$call_center_queue_uuid." ".$call_center_agent_uuid;
$response = event_socket_request($fp, $cmd);
if (is_uuid($call_center_queue_uuid) && is_uuid($call_center_agent_uuid)) {
$cmd = "api callcenter_config tier del ".$call_center_queue_uuid." ".$call_center_agent_uuid;
$response = event_socket_request($fp, $cmd);
}
}
//delete the tier from the database
if (strlen($call_center_tier_uuid) > 0) {