This commit is contained in:
xdrm-brackets 2017-07-23 02:11:52 +02:00
parent 846c0ddfed
commit 8e1af22db8
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) */ /* (3) Mise à jour de l'identité de la machine (ap-ip) */
$updateNetId = new Repo('machine/updateNetworkIdentity', [ $updateNetId = new Repo('machine/updateNetworkIdentity', [
$_SESSION['WAREHOUSE']['id'], $_SESSION['WAREHOUSE']['id'],
$id_machine, $_SESSION['SATS']['id'],
$fetched['identity']['ap'], $fetched['identity']['ap'],
$fetched['identity']['ip'] $fetched['identity']['ip']
]); ]);
/* (2) On gère l'erreur */ /* (2) On gère l'erreur */
if( !$updateNetId->answer() ) if( $updateNetId->error->get() != Err::Success || !$updateNetId->answer() )
return [ 'error' => new Error(Err::RepoError), 'details' => $updatedNetId->answer() ]; return [ 'error' => new Error(Err::RepoError), 'details' => $updateNetId->answer() ];
/* [3] Gestion des données à envoyer /* [3] Gestion des données à envoyer