Fix: Remove warning
This commit is contained in:
parent
7d8f9f74e0
commit
842d34f726
@ -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.");
|
||||
|
||||
@ -177,7 +177,7 @@ if (! $error)
|
||||
else
|
||||
{
|
||||
if (isset($db)) print $db->lasterror();
|
||||
if (! $db->connected) print '<br>'.$langs->trans("BecauseConnectionFailedParametersMayBeWrong").'<br><br>';
|
||||
if (isset($db) && ! $db->connected) print '<br>'.$langs->trans("BecauseConnectionFailedParametersMayBeWrong").'<br><br>';
|
||||
print $langs->trans("ErrorGoBackAndCorrectParameters");
|
||||
$error++;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user