use proper file mode when testing config file for write premissions
This commit is contained in:
parent
cd1ffd912b
commit
15a3949811
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ global $CONFIG_ENABLEBACKUP;
|
|||
global $CONFIG_DATADIRECTORY_ROOT;
|
||||
global $CONFIG_BACKUPDIRECTORY;
|
||||
global $CONFIG_ERROR;
|
||||
$f=@fopen($SERVERROOT.'/config/config.php','r+');
|
||||
$f=@fopen($SERVERROOT.'/config/config.php','a+');
|
||||
if(!$f) die('Error: Config file (config/config.php) is not writable for the webserver.<br/>');
|
||||
@fclose($f);
|
||||
if(!isset($fillDB)) $fillDB=true;
|
||||
|
|
Loading…
Reference in a new issue