From d1f7f4f18fc310850ec2bb1a2c102fa83a4edd96 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Tue, 26 Sep 2017 16:39:17 +0200 Subject: [PATCH] Removed debug --- build/api/module/machineDefault.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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() ]; + }