do not give the 'can't write config file' error when the config file doesn't exsist

This commit is contained in:
Robin 2010-05-22 23:45:58 +02:00
parent 540963060a
commit 3d546db141
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ class OC_UTIL {
global $CONFIG_BACKUPDIRECTORY; global $CONFIG_BACKUPDIRECTORY;
global $CONFIG_ENABLEBACKUP; global $CONFIG_ENABLEBACKUP;
$error=''; $error='';
$f=@fopen($SERVERROOT.'/config/config.php','a+'); $f=@fopen($SERVERROOT.'/config/config.php','w+');
if(!$f) $error.='Error: Config file (config/config.php) is not writable for the webserver.<br/>'; if(!$f) $error.='Error: Config file (config/config.php) is not writable for the webserver.<br/>';
@fclose($f); @fclose($f);
if(!is_callable('sqlite_open') and !is_callable('mysql_connect')){ if(!is_callable('sqlite_open') and !is_callable('mysql_connect')){