diff --git a/build/api/module/machineDefault.php b/build/api/module/machineDefault.php index 6aa1f4f..13c6d19 100755 --- a/build/api/module/machineDefault.php +++ b/build/api/module/machineDefault.php @@ -582,18 +582,17 @@ /* (6) Sinon -> On entregistre les e-trees */ foreach($etree_res->get('etrees') as $etree){ - $etree_value = $etree['name'].'-'.$etree['daemon']; + $etree_name = $etree['name'].'-'.$etree['daemon']; /* (7) Si pas déja entregistré -> on l'ajoute */ - if( !in_array($etrees, $etree_name) ) + if( !in_array($etree_name, $etrees) ) $etrees[] = $etree_name; } } - }else - $etrees = ['error' => $mc_res->error->get() ]; + }