From 9573cfd9a96a6bc87f75fb1a04db2d3420319894 Mon Sep 17 00:00:00 2001 From: frytimo Date: Tue, 5 Mar 2024 13:58:22 -0400 Subject: [PATCH] fix transcription bug showing when not enabled in default settings (#6911) --- app/extensions/extension_edit.php | 2 +- app/voicemails/voicemail_edit.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/extensions/extension_edit.php b/app/extensions/extension_edit.php index 9e4fe650b3..69d047c233 100644 --- a/app/extensions/extension_edit.php +++ b/app/extensions/extension_edit.php @@ -1788,7 +1788,7 @@ echo "\n"; echo "\n"; - if (permission_exists('voicemail_transcription_enabled')) { + if (permission_exists('voicemail_transcription_enabled') && ($_SESSION['voicemail']['transcribe_enabled']['boolean'] ?? '') == "true") { echo "\n"; echo "\n"; echo " ".$text['label-voicemail_transcription_enabled']."\n"; diff --git a/app/voicemails/voicemail_edit.php b/app/voicemails/voicemail_edit.php index d8a52e612b..bc474289d2 100644 --- a/app/voicemails/voicemail_edit.php +++ b/app/voicemails/voicemail_edit.php @@ -794,7 +794,7 @@ echo "\n"; } - if (permission_exists('voicemail_transcription_enabled') && !empty($_SESSION['voicemail']['transcribe_enabled']['boolean']) == "true") { + if (permission_exists('voicemail_transcription_enabled') && ($_SESSION['voicemail']['transcribe_enabled']['boolean'] ?? '') == "true") { echo "\n"; echo "\n"; echo " ".$text['label-voicemail_transcription_enabled']."\n";