Remove some code redundancy.
This commit is contained in:
parent
16b8d5e172
commit
eee7786529
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Reference in New Issue