Fix: Remove warning

This commit is contained in:
Laurent Destailleur 2008-03-17 22:43:58 +00:00
parent 7d8f9f74e0
commit 842d34f726
2 changed files with 2 additions and 2 deletions

View File

@ -158,7 +158,7 @@ else
$confexists=0; $confexists=0;
# First we try by copying example # First we try by copying example
if (copy($conffile.".example", $conffile)) if (@copy($conffile.".example", $conffile))
{ {
# Success # Success
dolibarr_install_syslog("check: copied file ".$conffile.".example into ".$conffile." done successfully."); dolibarr_install_syslog("check: copied file ".$conffile.".example into ".$conffile." done successfully.");

View File

@ -177,7 +177,7 @@ if (! $error)
else else
{ {
if (isset($db)) print $db->lasterror(); 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"); print $langs->trans("ErrorGoBackAndCorrectParameters");
$error++; $error++;
} }