Remove the !empty(voicemail_mail_to) condition
The toggle for keeps local after email harms nothing. So we don't need to restrict it.
This commit is contained in:
parent
7707b9853c
commit
eb26156159
|
|
@ -177,7 +177,7 @@
|
||||||
if (permission_exists('voicemail_file')) {
|
if (permission_exists('voicemail_file')) {
|
||||||
$array['voicemails'][0]['voicemail_file'] = $voicemail_file;
|
$array['voicemails'][0]['voicemail_file'] = $voicemail_file;
|
||||||
}
|
}
|
||||||
if (permission_exists('voicemail_local_after_email') && !empty($voicemail_mail_to)) {
|
if (permission_exists('voicemail_local_after_email')) {
|
||||||
$array['voicemails'][0]['voicemail_local_after_email'] = $voicemail_local_after_email ?? 'false';
|
$array['voicemails'][0]['voicemail_local_after_email'] = $voicemail_local_after_email ?? 'false';
|
||||||
}
|
}
|
||||||
$array['voicemails'][0]['voicemail_enabled'] = $voicemail_enabled;
|
$array['voicemails'][0]['voicemail_enabled'] = $voicemail_enabled;
|
||||||
|
|
@ -874,10 +874,7 @@
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if (permission_exists('voicemail_file') && permission_exists('voicemail_local_after_email')) {
|
||||||
permission_exists('voicemail_file') &&
|
|
||||||
permission_exists('voicemail_local_after_email')
|
|
||||||
) {
|
|
||||||
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_local_after_email']."\n";
|
echo " ".$text['label-voicemail_local_after_email']."\n";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue