Add directory existence check

Add check to skip processing if directory doesn't exist.
This commit is contained in:
FusionPBX
2026-04-18 20:17:25 +00:00
committed by GitHub
parent 431949bb67
commit eb9f0da34e
+5
View File
@@ -284,6 +284,11 @@ function save_var_xml() {
return false;
}
//skip if the directory doesn't exist
if (!file_exists($switch_conf_dir)) {
return false;
}
//open the vars.xml file
$fout = fopen($switch_conf_dir."/vars.xml","w");