Fix warning

This commit is contained in:
Laurent Destailleur 2025-11-02 21:40:02 +01:00
parent 813adaa7b1
commit 65a983c2d7
2 changed files with 2 additions and 2 deletions

View file

@ -417,7 +417,7 @@ print $s;
print "<br>\n";
print "</div>\n";
$htmltext .= $langs->trans("UnalterableLogTool1");
$htmltext = $langs->trans("UnalterableLogTool1");
if ($mysoc->country_code == 'FR') {
$htmltext .= ' '.$langs->trans("UnalterableLogTool1FR");
}

View file

@ -115,7 +115,7 @@ if (empty($xmlremote) && getDolGlobalString($param)) {
if (empty($xmlremote)) {
$xmlremote = 'https://www.dolibarr.org/files/stable/signatures/filelist-'.DOL_VERSION.'.xml';
}
if ($xmlremote && !preg_match('/^https?:\/\//', $xmlremote)) {
if (!preg_match('/^https?:\/\//', $xmlremote)) {
$langs->load("errors");
setEventMessages($langs->trans("ErrorURLMustStartWithHttp", $xmlremote), null, 'errors');
$error++;