From 12964eb83e8b29321786b61d7b8f08b568aee97f Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 30 Oct 2023 20:29:56 -0600 Subject: [PATCH] Prevent an error by casting to int --- app/xml_cdr/resources/classes/xml_cdr.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/xml_cdr/resources/classes/xml_cdr.php b/app/xml_cdr/resources/classes/xml_cdr.php index 2f224bb13d..a1dc2269c8 100644 --- a/app/xml_cdr/resources/classes/xml_cdr.php +++ b/app/xml_cdr/resources/classes/xml_cdr.php @@ -684,7 +684,7 @@ if (!class_exists('xml_cdr')) { $this->array[$key]['originating_leg_uuid'] = urldecode($xml->variables->originating_leg_uuid); //store post dial delay, in milliseconds - $this->array[$key]['pdd_ms'] = urldecode($xml->variables->progress_mediamsec) + urldecode($xml->variables->progressmsec); + $this->array[$key]['pdd_ms'] = urldecode((int)$xml->variables->progress_mediamsec) + (int)urldecode($xml->variables->progressmsec); //get break down the date to year, month and day $start_stamp = urldecode($xml->variables->start_stamp);