Dialplan - Inbound: Updates for PHP 8.1

This commit is contained in:
fusionate 2023-05-17 20:35:25 +00:00
parent af8a6991b1
commit 86a09e5635
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -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')) {