Prevent an error by casting to int

This commit is contained in:
FusionPBX 2023-10-30 20:29:56 -06:00 committed by GitHub
parent 834be519ba
commit 12964eb83e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);