mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
is_writable prevents an error writing to the file if its not writable
This commit is contained in:
@@ -799,7 +799,7 @@ if (!class_exists('modules')) {
|
||||
$xml .= " </modules>\n";
|
||||
$xml .= "</configuration>";
|
||||
|
||||
if (file_exists($_SESSION['switch']['conf']['dir'].'/autoload_configs')) {
|
||||
if (is_writable($_SESSION['switch']['conf']['dir'].'/autoload_configs/modules.conf.xml')) {
|
||||
$fout = fopen($_SESSION['switch']['conf']['dir']."/autoload_configs/modules.conf.xml","w");
|
||||
fwrite($fout, $xml);
|
||||
unset($xml);
|
||||
|
||||
Reference in New Issue
Block a user