From 4d29fd8a9876a1a3cebebb69b0e6567afdb2bd1d Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 16 Jan 2024 08:44:22 -0700 Subject: [PATCH] Fix the voicemail greeting base64 upload --- app/voicemail_greetings/voicemail_greetings.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/voicemail_greetings/voicemail_greetings.php b/app/voicemail_greetings/voicemail_greetings.php index 4db8baa40e..71e4c0a85e 100644 --- a/app/voicemail_greetings/voicemail_greetings.php +++ b/app/voicemail_greetings/voicemail_greetings.php @@ -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); } -?> \ No newline at end of file +?>