diff --git a/htdocs/blockedlog/admin/blockedlog_list.php b/htdocs/blockedlog/admin/blockedlog_list.php index b4ab27714aa..be9b1175c2f 100644 --- a/htdocs/blockedlog/admin/blockedlog_list.php +++ b/htdocs/blockedlog/admin/blockedlog_list.php @@ -417,7 +417,7 @@ print $s; print "
\n"; print "\n"; -$htmltext .= $langs->trans("UnalterableLogTool1"); +$htmltext = $langs->trans("UnalterableLogTool1"); if ($mysoc->country_code == 'FR') { $htmltext .= ' '.$langs->trans("UnalterableLogTool1FR"); } diff --git a/htdocs/blockedlog/admin/filecheck.php b/htdocs/blockedlog/admin/filecheck.php index 4924908bdb5..289906deb6b 100644 --- a/htdocs/blockedlog/admin/filecheck.php +++ b/htdocs/blockedlog/admin/filecheck.php @@ -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++;