diff --git a/htdocs/webservices/server_supplier_invoice.php b/htdocs/webservices/server_supplier_invoice.php index e8bd3098acb..d0be6c74704 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 75064c1cb13..ebd153681a1 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))) {