From 8a7b0db0f12069094d10df68eeb643413dc89e9c Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sun, 23 Jul 2017 02:09:38 +0200 Subject: [PATCH] test#3 --- build/api/module/machineDefault.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() ];