diff --git a/htdocs/webservices/server_supplier_invoice.php b/htdocs/webservices/server_supplier_invoice.php
index e8bd3098acb8e1a86316d43dc8424536e1e46473..d0be6c7470478810b9a14b325b79eff792e477df 100755
--- a/htdocs/webservices/server_supplier_invoice.php
+++ b/htdocs/webservices/server_supplier_invoice.php
@@ -223,7 +223,7 @@ function getSupplierInvoice($authentication,$id='',$ref='',$ref_ext='')
     $objectresp=array();
     $errorcode='';$errorlabel='';
     $error=0;
-    $fuser=check_authentication($authentication,&$error,&$errorcode,&$errorlabel);
+    $fuser=check_authentication($authentication,$error,$errorcode,$errorlabel);
     // Check parameters
 	if (! $error && (($id && $ref) || ($id && $ref_ext) || ($ref && $ref_ext)))
 	{
@@ -311,7 +311,7 @@ function getSupplierInvoicesForThirdParty($authentication,$idthirdparty)
     $objectresp=array();
     $errorcode='';$errorlabel='';
     $error=0;
-    $fuser=check_authentication($authentication,&$error,&$errorcode,&$errorlabel);
+    $fuser=check_authentication($authentication,$error,$errorcode,$errorlabel);
     // Check parameters
 	if (! $error && empty($idthirdparty))
 	{
diff --git a/htdocs/webservices/server_thirdparty.php b/htdocs/webservices/server_thirdparty.php
index 75064c1cb135742af919e794ab6124980330ca43..ebd153681a17baa434d3bf791b10586cd9845d8b 100755
--- a/htdocs/webservices/server_thirdparty.php
+++ b/htdocs/webservices/server_thirdparty.php
@@ -152,7 +152,7 @@ function getThirdParty($authentication,$id='',$ref='',$ref_ext='')
     $objectresp=array();
     $errorcode='';$errorlabel='';
     $error=0;
-    $fuser=check_authentication($authentication,&$error,&$errorcode,&$errorlabel);
+    $fuser=check_authentication($authentication,$error,$errorcode,$errorlabel);
     // Check parameters
 	if (! $error && (($id && $ref) || ($id && $ref_ext) || ($ref && $ref_ext)))
 	{