mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 03:33:49 +00:00
Prevent an error message if the directory doesn't exist.
This commit is contained in:
@@ -809,10 +809,12 @@ if (!class_exists('modules')) {
|
||||
$xml .= " </modules>\n";
|
||||
$xml .= "</configuration>";
|
||||
|
||||
$fout = fopen($_SESSION['switch']['conf']['dir']."/autoload_configs/modules.conf.xml","w");
|
||||
fwrite($fout, $xml);
|
||||
unset($xml);
|
||||
fclose($fout);
|
||||
if (file_exists($_SESSION['switch']['conf']['dir'].'/autoload_configs')) {
|
||||
$fout = fopen($_SESSION['switch']['conf']['dir']."/autoload_configs/modules.conf.xml","w");
|
||||
fwrite($fout, $xml);
|
||||
unset($xml);
|
||||
fclose($fout);
|
||||
}
|
||||
|
||||
//apply settings
|
||||
$_SESSION["reload_xml"] = true;
|
||||
|
||||
Reference in New Issue
Block a user