Remove some code redundancy.

This commit is contained in:
FusionPBX 2022-05-02 08:27:15 -06:00 committed by GitHub
parent 16b8d5e172
commit eee7786529
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -674,7 +674,6 @@
//$array["voicemails"][$i]["voicemail_alternate_greet_id"] = $alternate_greet_id;
$array["voicemails"][$i]["voicemail_mail_to"] = $voicemail_mail_to;
//$array["voicemails"][$i]["voicemail_attach_file"] = $voicemail_attach_file;
$array["voicemails"][$i]["voicemail_transcription_enabled"] = $voicemail_transcription_enabled;
$array["voicemails"][$i]["voicemail_file"] = $voicemail_file;
if (permission_exists('voicemail_local_after_email')) {
$array["voicemails"][$i]["voicemail_local_after_email"] = $voicemail_local_after_email;
@ -884,11 +883,10 @@
$voicemail_password = str_replace("#", "", $row["voicemail_password"]);
$voicemail_mail_to = str_replace(" ", "", $row["voicemail_mail_to"]);
$voicemail_transcription_enabled = $row["voicemail_transcription_enabled"];
$voicemail_tutorial = $row["voicemail_tutorial"];
$voicemail_file = $row["voicemail_file"];
$voicemail_local_after_email = $row["voicemail_local_after_email"];
$voicemail_enabled = $row["voicemail_enabled"];
$voicemail_transcription_enabled = $row["voicemail_transcription_enabled"];
$voicemail_tutorial = $row["voicemail_tutorial"];
}
unset($sql, $parameters, $row);
}
@ -1723,7 +1721,7 @@
echo "</td>\n";
echo "</tr>\n";
if (permission_exists('voicemail_transcription_enabled') && $_SESSION['voicemail']['transcribe_enabled']['boolean'] == "true") {
if (permission_exists('voicemail_transcription_enabled')) {
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-voicemail_transcription_enabled']."\n";