Fix: deprecated feature
This commit is contained in:
parent
389fd715dc
commit
4fb81f3e7f
@ -31,7 +31,7 @@
|
|||||||
* @param errorcode
|
* @param errorcode
|
||||||
* @param errorlabel
|
* @param errorlabel
|
||||||
*/
|
*/
|
||||||
function check_authentication($authentication,$error,$errorcode,$errorlabel)
|
function check_authentication($authentication,&$error,&$errorcode,&$errorlabel)
|
||||||
{
|
{
|
||||||
global $db,$conf,$langs;
|
global $db,$conf,$langs;
|
||||||
|
|
||||||
|
|||||||
@ -257,7 +257,7 @@ function getInvoice($authentication,$id='',$ref='',$ref_ext='')
|
|||||||
$objectresp=array();
|
$objectresp=array();
|
||||||
$errorcode='';$errorlabel='';
|
$errorcode='';$errorlabel='';
|
||||||
$error=0;
|
$error=0;
|
||||||
$fuser=check_authentication($authentication,&$error,&$errorcode,&$errorlabel);
|
$fuser=check_authentication($authentication,$error,$errorcode,$errorlabel);
|
||||||
// Check parameters
|
// Check parameters
|
||||||
if (! $error && (($id && $ref) || ($id && $ref_ext) || ($ref && $ref_ext)))
|
if (! $error && (($id && $ref) || ($id && $ref_ext) || ($ref && $ref_ext)))
|
||||||
{
|
{
|
||||||
@ -361,7 +361,7 @@ function getInvoicesForThirdParty($authentication,$idthirdparty)
|
|||||||
$objectresp=array();
|
$objectresp=array();
|
||||||
$errorcode='';$errorlabel='';
|
$errorcode='';$errorlabel='';
|
||||||
$error=0;
|
$error=0;
|
||||||
$fuser=check_authentication($authentication,&$error,&$errorcode,&$errorlabel);
|
$fuser=check_authentication($authentication,$error,$errorcode,$errorlabel);
|
||||||
// Check parameters
|
// Check parameters
|
||||||
if (! $error && empty($idthirdparty))
|
if (! $error && empty($idthirdparty))
|
||||||
{
|
{
|
||||||
@ -479,7 +479,7 @@ function createInvoice($authentication,$invoice)
|
|||||||
$objectresp=array();
|
$objectresp=array();
|
||||||
$errorcode='';$errorlabel='';
|
$errorcode='';$errorlabel='';
|
||||||
$error=0;
|
$error=0;
|
||||||
$fuser=check_authentication($authentication,&$error,&$errorcode,&$errorlabel);
|
$fuser=check_authentication($authentication,$error,$errorcode,$errorlabel);
|
||||||
// Check parameters
|
// Check parameters
|
||||||
|
|
||||||
if (! $error)
|
if (! $error)
|
||||||
|
|||||||
@ -116,7 +116,7 @@ function getVersions($authentication)
|
|||||||
$objectresp=array();
|
$objectresp=array();
|
||||||
$errorcode='';$errorlabel='';
|
$errorcode='';$errorlabel='';
|
||||||
$error=0;
|
$error=0;
|
||||||
$fuser=check_authentication($authentication,&$error,&$errorcode,&$errorlabel);
|
$fuser=check_authentication($authentication,$error,$errorcode,$errorlabel);
|
||||||
// Check parameters
|
// Check parameters
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user