Voicemail: Better check on Default Setting switch > phrases > dir value.

This commit is contained in:
Nate 2020-09-25 18:00:50 -06:00
parent 032d369db1
commit 462da0a3e2
1 changed files with 56 additions and 56 deletions

View File

@ -29,7 +29,7 @@ if ($domains_processed == 1) {
// process change from using macros to phrases
$languages_path = $_SESSION['switch']['phrases']['dir'];
if ($languages_path && file_exists($languages_path)) {
if ($languages_path != '' && file_exists($languages_path)) {
$folder_contents = scandir($languages_path);
if (is_array($folder_contents) && @sizeof($folder_contents) != 0) {
foreach ($folder_contents as $language_abbreviation) {