From 85c8612c87f9e1d510faba08638ac9656a90ee1c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 13 Jan 2026 15:55:56 +0100 Subject: [PATCH] Fix warning oauth --- htdocs/core/modules/oauth/google_oauthcallback.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/core/modules/oauth/google_oauthcallback.php b/htdocs/core/modules/oauth/google_oauthcallback.php index 4e4816d676e..087fe34f654 100644 --- a/htdocs/core/modules/oauth/google_oauthcallback.php +++ b/htdocs/core/modules/oauth/google_oauthcallback.php @@ -249,6 +249,7 @@ if (!GETPOST('code')) { $db->begin(); + $token = null; try { // This requests the token from the received OAuth code (call of the https://oauth2.googleapis.com/token endpoint) // Result is stored into object managed by class DoliStorage into includes/OAuth/Common/Storage/DoliStorage.php and into database table llx_oauth_token