Update voicemail.php

This commit is contained in:
FusionPBX 2023-07-05 18:53:26 -06:00 committed by GitHub
parent e629e615d4
commit ae51a57566
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

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