diff --git a/htdocs/lib/functions.inc.php b/htdocs/lib/functions.inc.php index 77df4e38a09..783a4e76a0e 100644 --- a/htdocs/lib/functions.inc.php +++ b/htdocs/lib/functions.inc.php @@ -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);