Update xml_cdr.php (#7156)

Fixed CDR recording playback - casting an empty string to an int breaks the if statement.
This commit is contained in:
anthony-ricci 2024-10-08 19:27:54 -04:00 committed by GitHub
parent 71b8767d21
commit 6b49a92f76
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

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