Check for null uuid's (#4402)

Null UUID's are not very kind. They will sneak into your CDR's when you aren't looking and break an otherwise very nice database INSERT statement. We cannot tolerate that sort of behavior.
This commit is contained in:
konradSC 2019-07-31 18:00:20 -04:00 committed by FusionPBX
parent e221bb2be3
commit d0bc9034a1
1 changed files with 1 additions and 1 deletions

View File

@ -266,7 +266,7 @@ if (!class_exists('xml_cdr')) {
}
//process data if the call detail record is not a duplicate
if ($duplicate_uuid == false) {
if ($duplicate_uuid == false && $uuid != null) {
//get the destination number
if ($xml->variables->current_application == "bridge") {
$current_application_data = urldecode($xml->variables->current_application_data);