Fix the voicemail greeting base64 upload

This commit is contained in:
FusionPBX 2024-01-16 08:44:22 -07:00 committed by GitHub
parent 0faa26e58f
commit 4d29fd8a98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -209,7 +209,7 @@
$array['voicemail_greetings'][$x]['greeting_filename'] = $file_name;
$array['voicemail_greetings'][$x]['greeting_description'] = '';
if (!empty($_SESSION['voicemail']['storage_type']['text']) && $_SESSION['voicemail']['storage_type']['text'] == 'base64') {
$array['voicemail_greetings'][$x]['greeting_base64'] = base64_encode(file_get_contents($greeting_dir.'/'.$file));
$array['voicemail_greetings'][$x]['greeting_base64'] = base64_encode(file_get_contents($greeting_dir.'/'.$file_name));
}
//save the array
@ -587,4 +587,4 @@
fclose($fp);
}
?>
?>