fix transcription bug showing when not enabled in default settings (#6911)

This commit is contained in:
frytimo
2024-03-05 10:58:22 -07:00
committed by GitHub
parent 9810ac81b9
commit 9573cfd9a9
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1788,7 +1788,7 @@
echo "</td>\n"; echo "</td>\n";
echo "</tr>\n"; echo "</tr>\n";
if (permission_exists('voicemail_transcription_enabled')) { if (permission_exists('voicemail_transcription_enabled') && ($_SESSION['voicemail']['transcribe_enabled']['boolean'] ?? '') == "true") {
echo "<tr>\n"; echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n"; echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-voicemail_transcription_enabled']."\n"; echo " ".$text['label-voicemail_transcription_enabled']."\n";
+1 -1
View File
@@ -794,7 +794,7 @@
echo "</tr>\n"; echo "</tr>\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 "<tr>\n"; echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n"; echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-voicemail_transcription_enabled']."\n"; echo " ".$text['label-voicemail_transcription_enabled']."\n";