diff --git a/app/dialplan_inbound/app_defaults.php b/app/dialplan_inbound/app_defaults.php index 6b4b509097..1399321235 100644 --- a/app/dialplan_inbound/app_defaults.php +++ b/app/dialplan_inbound/app_defaults.php @@ -27,7 +27,7 @@ //if there are multiple domains then update the public dir path to include the domain if ($domains_processed == 1) { if (count($_SESSION["domains"]) > 1) { - if (is_dir($_SESSION['switch']['dialplan']['dir'].'/public')) { + if (!empty($_SESSION['switch']['dialplan']['dir']) && is_dir($_SESSION['switch']['dialplan']['dir'].'/public')) { //clear out the old xml files $v_needle = '_v_'; if($dh = opendir($_SESSION['switch']['dialplan']['dir'].'/public')) {