minfix
This commit is contained in:
parent
f6b09695d8
commit
d4c06aa1b7
|
@ -659,14 +659,13 @@
|
|||
|
||||
/* [1] Initialisation des variables
|
||||
=========================================================*/
|
||||
$data = ['a', 'b'];
|
||||
$fetched = [ 'testdata' => [5,2,3] ];
|
||||
|
||||
|
||||
z
|
||||
/* [2] Gestion des données reçues
|
||||
=========================================================*/
|
||||
/* (1) For each history entry */
|
||||
if( isset($data['history']) && is_array($data['history']) )
|
||||
if( isset($data['history']) && is_array($data['history']) ){
|
||||
|
||||
/* (2) Create history entry in db */
|
||||
foreach($data['history'] as $entry){
|
||||
|
@ -688,6 +687,8 @@ z
|
|||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -704,7 +705,7 @@ z
|
|||
|
||||
/* [4] Envoi des données
|
||||
=========================================================*/
|
||||
return array_merge($basis_update, ['data' => $data]);
|
||||
return array_merge($basis_update, ['data' => $fetched]);
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue