Voicemail - Edit: Hide 'SMS To' field if app/sms not present.

This commit is contained in:
Nate 2020-06-02 14:29:00 -06:00
parent 485d8681ca
commit 2c7753c471
1 changed files with 1 additions and 1 deletions

View File

@ -620,7 +620,7 @@
echo "</td>\n";
echo "</tr>\n";
if (permission_exists('voicemail_sms_edit')) {
if (permission_exists('voicemail_sms_edit') && file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH.'/app/sms/')) {
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-voicemail_sms_to']."\n";