diff --git a/htdocs/install/check.php b/htdocs/install/check.php index b3fed83bce6..807cde9219c 100644 --- a/htdocs/install/check.php +++ b/htdocs/install/check.php @@ -158,7 +158,7 @@ else $confexists=0; # First we try by copying example - if (copy($conffile.".example", $conffile)) + if (@copy($conffile.".example", $conffile)) { # Success dolibarr_install_syslog("check: copied file ".$conffile.".example into ".$conffile." done successfully."); diff --git a/htdocs/install/etape0.php b/htdocs/install/etape0.php index b04e968f0e3..adf3b58a22f 100644 --- a/htdocs/install/etape0.php +++ b/htdocs/install/etape0.php @@ -177,7 +177,7 @@ if (! $error) else { if (isset($db)) print $db->lasterror(); - if (! $db->connected) print '
'.$langs->trans("BecauseConnectionFailedParametersMayBeWrong").'

'; + if (isset($db) && ! $db->connected) print '
'.$langs->trans("BecauseConnectionFailedParametersMayBeWrong").'

'; print $langs->trans("ErrorGoBackAndCorrectParameters"); $error++; }