This commit is contained in:
xdrm-brackets 2017-07-23 02:11:52 +02:00
parent 8a7b0db0f1
commit c3559264f1
1 changed files with 3 additions and 3 deletions

View File

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