From 65a983c2d7ee9f4fb2cd7c5e53437752d0deeb6b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 2 Nov 2025 21:40:02 +0100 Subject: [PATCH] Fix warning --- htdocs/blockedlog/admin/blockedlog_list.php | 2 +- htdocs/blockedlog/admin/filecheck.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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++;