From ae51a575669d8e24999dd22a8a6e7a3ae940480f Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 5 Jul 2023 18:53:26 -0600 Subject: [PATCH] Update voicemail.php --- app/voicemails/resources/classes/voicemail.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/voicemails/resources/classes/voicemail.php b/app/voicemails/resources/classes/voicemail.php index d44ab8de9b..cbe0eb1405 100644 --- a/app/voicemails/resources/classes/voicemail.php +++ b/app/voicemails/resources/classes/voicemail.php @@ -256,9 +256,9 @@ if (file_exists($path.'/msg_'.$row['voicemail_message_uuid'].'.mp3')) { $row['file_path'] = $path.'/msg_'.$row['voicemail_message_uuid'].'.mp3'; } - $row['file_size'] = filesize($row['file_path']); - $row['file_size_label'] = byte_convert($row['file_size']); - $row['file_ext'] = substr($row['file_path'], -3); + $row['file_size'] = filesize($row['file_path'] ?? ''); + $row['file_size_label'] = byte_convert($row['file_size'] ?? ''); + $row['file_ext'] = substr($row['file_path'] ?? '', -3); $message_minutes = floor($row['message_length'] / 60); $message_seconds = $row['message_length'] % 60;