Fix: gestion des erreurs si le fichier conf.php est en lecture seul

This commit is contained in:
Regis Houssin 2007-04-25 12:16:00 +00:00
parent 7357d3c050
commit 79cb71180f

View File

@ -2447,7 +2447,7 @@ function encodedecode_dbpassconf($level=0)
}
fclose($fp);
if ($fp = fopen(DOL_DOCUMENT_ROOT.'/conf/conf.php','w'))
if ($fp = @fopen(DOL_DOCUMENT_ROOT.'/conf/conf.php','w'))
{
fputs($fp, $config, strlen($config));
fclose($fp);