From 0e4bfeead78ffe476f3dfa552c7f4e9d9730c050 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 21 Nov 2025 14:41:31 +0100 Subject: [PATCH] Fix CI --- htdocs/user/api_token/list.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/user/api_token/list.php b/htdocs/user/api_token/list.php index 82647b85936..e1483050d71 100644 --- a/htdocs/user/api_token/list.php +++ b/htdocs/user/api_token/list.php @@ -204,7 +204,7 @@ if (!getDolGlobalInt('MAIN_DISABLE_FULL_SCANLIST')) { /* The fast and low memory method to get and count full list converts the sql into a sql count */ $sqlforcount = 'SELECT COUNT(*) as nbtotalofrecords'; $sqlforcount .= " FROM ".MAIN_DB_PREFIX."oauth_token as oat"; - $sqlforcount .= " WHERE entity IN (".$conf->entity.")"; + $sqlforcount .= " WHERE entity =".((int) $conf->entity); $sqlforcount .= " AND fk_user = ".((int) $id); $sqlforcount .= " AND service = 'dolibarr_rest_api'"; $resql = $db->query($sqlforcount);