test#4
This commit is contained in:
parent
846c0ddfed
commit
8e1af22db8
|
@ -684,14 +684,14 @@
|
|||
/* (3) Mise à jour de l'identité de la machine (ap-ip) */
|
||||
$updateNetId = new Repo('machine/updateNetworkIdentity', [
|
||||
$_SESSION['WAREHOUSE']['id'],
|
||||
$id_machine,
|
||||
$_SESSION['SATS']['id'],
|
||||
$fetched['identity']['ap'],
|
||||
$fetched['identity']['ip']
|
||||
]);
|
||||
|
||||
/* (2) On gère l'erreur */
|
||||
if( !$updateNetId->answer() )
|
||||
return [ 'error' => new Error(Err::RepoError), 'details' => $updatedNetId->answer() ];
|
||||
if( $updateNetId->error->get() != Err::Success || !$updateNetId->answer() )
|
||||
return [ 'error' => new Error(Err::RepoError), 'details' => $updateNetId->answer() ];
|
||||
|
||||
|
||||
/* [3] Gestion des données à envoyer
|
||||
|
|
Loading…
Reference in New Issue