This commit is contained in:
xdrm-brackets 2017-02-20 13:58:59 +01:00
parent cdb7818998
commit 0811454912
1 changed files with 5 additions and 4 deletions

View File

@ -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]);
}