Fixed fetchDefault::motheure_simple code
This commit is contained in:
parent
2655edee5d
commit
c3e1a5d4d6
|
@ -152,10 +152,14 @@
|
|||
'count' => $total
|
||||
]);
|
||||
|
||||
// {2} Process + get response //
|
||||
/* (2) Process + get response */
|
||||
$upd_res = $upd_req->dispatch();
|
||||
|
||||
/* (3) Retourne le nombre d'entrées enregistrées */
|
||||
/* (3) Manage error */
|
||||
if( $upd_res->error->get() != Err::Success )
|
||||
return ['error' => $upd_res->error];
|
||||
|
||||
/* (4) Retourne le nombre d'entrées enregistrées */
|
||||
return [ 'saved' => $count ];
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue