Voicemail Greetings: Updates for PHP 8.1

This commit is contained in:
fusionate
2023-06-09 16:51:59 +00:00
parent bd9a407ba5
commit 39cb1c3588
5 changed files with 35 additions and 30 deletions
+1 -1
View File
@@ -109,7 +109,7 @@ if ($domains_processed == 1) {
}
//if not base64, decode to local files, remove base64 data from db
else if (!empty($_SESSION['voicemail']['storage_type']['text']) && $_SESSION['voicemail']['storage_type']['text'] != 'base64') {
else if (empty($_SESSION['voicemail']['storage_type']['text']) || $_SESSION['voicemail']['storage_type']['text'] != 'base64') {
//get greetings with base64 in db
$sql = "select voicemail_greeting_uuid, domain_uuid, voicemail_id, greeting_filename, greeting_base64 ";
$sql .= "from v_voicemail_greetings ";