Fix: deprecated feature
This commit is contained in:
parent
389fd715dc
commit
4fb81f3e7f
@ -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;
|
||||
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user