minmod
This commit is contained in:
parent
0811454912
commit
0223e4f63d
|
@ -650,9 +650,10 @@
|
|||
/* [0] Vérification du token
|
||||
=========================================================*/
|
||||
$checkToken = new Repo('machine/checkToken', [ $_SESSION['WAREHOUSE']['id'], $token, $renew ]);
|
||||
$machine = $checkToken->answer();
|
||||
|
||||
// Si token incorrect, on envoie une erreur
|
||||
if( !$checkToken->answer() )
|
||||
if( $machine === false )
|
||||
return [ 'error' => new Error(Err::TokenError) ];
|
||||
|
||||
|
||||
|
@ -697,7 +698,7 @@
|
|||
=========================================================*/
|
||||
/* (1) Basic working data update
|
||||
---------------------------------------------------------*/
|
||||
$basis_update = self::getMachineWorkingInformation($id_machine);
|
||||
$basis_update = self::getMachineWorkingInformation($machine['id_machine']);
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue