From 4fb81f3e7f83b0992cdca3b89848978c117e0ddf Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 1 Jun 2011 18:36:40 +0000 Subject: [PATCH] Fix: deprecated feature --- htdocs/lib/ws.lib.php | 2 +- htdocs/webservices/server_invoice.php | 6 +++--- htdocs/webservices/server_other.php | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/htdocs/lib/ws.lib.php b/htdocs/lib/ws.lib.php index 9df433f7219..9cce70fc3b5 100755 --- a/htdocs/lib/ws.lib.php +++ b/htdocs/lib/ws.lib.php @@ -31,7 +31,7 @@ * @param errorcode * @param errorlabel */ -function check_authentication($authentication,$error,$errorcode,$errorlabel) +function check_authentication($authentication,&$error,&$errorcode,&$errorlabel) { global $db,$conf,$langs; diff --git a/htdocs/webservices/server_invoice.php b/htdocs/webservices/server_invoice.php index 0698c5b31ab..5a5f09370b3 100755 --- a/htdocs/webservices/server_invoice.php +++ b/htdocs/webservices/server_invoice.php @@ -257,7 +257,7 @@ function getInvoice($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))) { @@ -361,7 +361,7 @@ function getInvoicesForThirdParty($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)) { @@ -479,7 +479,7 @@ function createInvoice($authentication,$invoice) $objectresp=array(); $errorcode='';$errorlabel=''; $error=0; - $fuser=check_authentication($authentication,&$error,&$errorcode,&$errorlabel); + $fuser=check_authentication($authentication,$error,$errorcode,$errorlabel); // Check parameters if (! $error) diff --git a/htdocs/webservices/server_other.php b/htdocs/webservices/server_other.php index 5a35aae5689..0d32271038e 100644 --- a/htdocs/webservices/server_other.php +++ b/htdocs/webservices/server_other.php @@ -116,7 +116,7 @@ function getVersions($authentication) $objectresp=array(); $errorcode='';$errorlabel=''; $error=0; - $fuser=check_authentication($authentication,&$error,&$errorcode,&$errorlabel); + $fuser=check_authentication($authentication,$error,$errorcode,$errorlabel); // Check parameters