Fix: deprecated feature

This commit is contained in:
Laurent Destailleur 2011-06-01 18:36:40 +00:00
parent 389fd715dc
commit 4fb81f3e7f
3 changed files with 5 additions and 5 deletions

View File

@ -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;

View File

@ -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)

View File

@ -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