From 6b49a92f769451b52380d9d8b9b5ffe1d7f7618b Mon Sep 17 00:00:00 2001 From: anthony-ricci Date: Tue, 8 Oct 2024 19:27:54 -0400 Subject: [PATCH] Update xml_cdr.php (#7156) Fixed CDR recording playback - casting an empty string to an int breaks the if statement. --- 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 2417113f25..395178bcf7 100644 --- a/app/xml_cdr/resources/classes/xml_cdr.php +++ b/app/xml_cdr/resources/classes/xml_cdr.php @@ -1952,7 +1952,7 @@ if (!class_exists('xml_cdr')) { else { $range = explode('-', $range); $c_start = $range[0]; - $c_end = (isset($range[1]) && is_numeric((int)$range[1])) ? $range[1] : $size; + $c_end = (isset($range[1]) && is_numeric($range[1])) ? $range[1] : $size; } /* Check the range and make sure it's treated according to the specs. * http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html