Voicemail: Fix emailed direct message Download feature.

This commit is contained in:
fusionate
2024-03-13 18:08:14 -06:00
parent 41e95766c6
commit a22d766d6a
2 changed files with 14 additions and 1 deletions
@@ -744,7 +744,7 @@
$this->message_saved();
//set source folder path
$path = $_SESSION['switch']['voicemail']['dir'].'/default/'.$_SESSION['domain_name'].'/'.$this->voicemail_id;
$path = ($_SESSION['switch']['voicemail']['dir'] ?? $_SESSION['switch']['voicemail']).'/default/'.$_SESSION['domain_name'].'/'.$this->voicemail_id;
//prepare base64 content from db, if enabled
if (!empty($_SESSION['voicemail']['storage_type']['text']) && $_SESSION['voicemail']['storage_type']['text'] == 'base64') {