From f15db0a3a9616c61018ca2d5cbeb523dcc37ee01 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Mon, 25 Sep 2017 23:23:42 +0200 Subject: [PATCH] Fixed according to *SATS* api/sync log @2 --- 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 99bd2ff..1517b3a 100755 --- a/build/api/module/machineDefault.php +++ b/build/api/module/machineDefault.php @@ -517,7 +517,7 @@ // On met en forme les données : "val1,val2,val3" -> [val1, val2, val3] foreach($states as $s=>$state){ - $chips[$c]['states'][$state['state']] = explode(',', $state['values']); + $chips[$c]['states'][$state['state']] = explode(',', $state['value']); foreach($chips[$c]['states'][$state['state']] as $s2=>$state2) $chips[$c]['states'][$state['state']][$s2] = intval($state2); }