diff --git a/build/api/module/machineDefault.php b/build/api/module/machineDefault.php index ac2567a..9770600 100755 --- a/build/api/module/machineDefault.php +++ b/build/api/module/machineDefault.php @@ -691,7 +691,7 @@ /* (2) On gère l'erreur */ if( $updateNetId->error->get() != Err::Success || !$updateNetId->answer() ) - return [ 'error' => new Error(Err::RepoError), 'details' => [ 'status' => $updateNetId->answer(), 'id' => $fetched['identity'] ] ]; + return [ 'error' => new Error(Err::RepoError), 'details' => [ 'status' => $updateNetId->answer(), 'id' => $data['identity'] ] ]; /* [3] Gestion des données à envoyer