From 3e2d3c12f1d3bc29a9cd1870fffe3d8800c948c8 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 22 Jun 2026 13:12:39 +0200 Subject: [PATCH] Clean code --- htdocs/core/lib/ws.lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/lib/ws.lib.php b/htdocs/core/lib/ws.lib.php index f56e899debd..d9570cbd22b 100644 --- a/htdocs/core/lib/ws.lib.php +++ b/htdocs/core/lib/ws.lib.php @@ -36,12 +36,12 @@ */ function check_authentication($authentication, &$error, &$errorcode, &$errorlabel) { - global $db, $conf, $langs; + global $db; global $dolibarr_main_authentication, $dolibarr_auto_user; $fuser = new User($db); - if (!$error && ($authentication['dolibarrkey'] != $conf->global->WEBSERVICES_KEY)) { + if (!$error && ($authentication['dolibarrkey'] != getDolGlobalString('WEBSERVICES_KEY'))) { $error++; $errorcode = 'BAD_VALUE_FOR_SECURITY_KEY'; $errorlabel = 'Value provided into dolibarrkey entry field does not match security key defined in Webservice module setup';