diff --git a/app/modules/resources/classes/modules.php b/app/modules/resources/classes/modules.php index 5c55f086b0..293cfce1b4 100644 --- a/app/modules/resources/classes/modules.php +++ b/app/modules/resources/classes/modules.php @@ -799,7 +799,7 @@ if (!class_exists('modules')) { $xml .= " \n"; $xml .= ""; - 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);