Fix the voicemail greeting base64 upload
This commit is contained in:
@@ -209,7 +209,7 @@
|
|||||||
$array['voicemail_greetings'][$x]['greeting_filename'] = $file_name;
|
$array['voicemail_greetings'][$x]['greeting_filename'] = $file_name;
|
||||||
$array['voicemail_greetings'][$x]['greeting_description'] = '';
|
$array['voicemail_greetings'][$x]['greeting_description'] = '';
|
||||||
if (!empty($_SESSION['voicemail']['storage_type']['text']) && $_SESSION['voicemail']['storage_type']['text'] == 'base64') {
|
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
|
//save the array
|
||||||
|
|||||||
Reference in New Issue
Block a user