Prevent an error

This commit is contained in:
FusionPBX 2024-03-02 18:13:25 -07:00 committed by GitHub
parent b1589bac86
commit 1acb30a7fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -906,7 +906,7 @@
}
//mos (mean opinion score)
if (permission_exists("xml_cdr_mos")) {
if(!empty($row['rtp_audio_in_mos'])) {
if(!empty($row['rtp_audio_in_mos']) && is_numeric($row['rtp_audio_in_mos'])) {
$title = " title='".$text['label-mos_score-'.round($row['rtp_audio_in_mos'])]."'";
$value = $row['rtp_audio_in_mos'];
}