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;