From 2c7753c471ac93ca78ccbaf6acf9960ebf77ab0b Mon Sep 17 00:00:00 2001 From: Nate Date: Tue, 2 Jun 2020 14:29:00 -0600 Subject: [PATCH] Voicemail - Edit: Hide 'SMS To' field if app/sms not present. --- app/voicemails/voicemail_edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/voicemails/voicemail_edit.php b/app/voicemails/voicemail_edit.php index 1dc90c7e5b..4316b4af68 100644 --- a/app/voicemails/voicemail_edit.php +++ b/app/voicemails/voicemail_edit.php @@ -620,7 +620,7 @@ echo "\n"; echo "\n"; - if (permission_exists('voicemail_sms_edit')) { + if (permission_exists('voicemail_sms_edit') && file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH.'/app/sms/')) { echo "\n"; echo "\n"; echo " ".$text['label-voicemail_sms_to']."\n";