diff --git a/build/api/module/machineDefault.php b/build/api/module/machineDefault.php index 03219dd..bc8b7f1 100755 --- a/build/api/module/machineDefault.php +++ b/build/api/module/machineDefault.php @@ -690,7 +690,7 @@ ]); /* (2) On gère l'erreur */ - if( $updateNetId->error->get() != Err::Success || !$updateNetId->answer() ) + if( !$updateNetId->answer() ) return [ 'error' => new Error(Err::RepoError), 'details' => $updatedNetId->answer() ];