Fixed fetchDefault::motheure_simple code

This commit is contained in:
xdrm-brackets 2017-10-13 18:43:52 +02:00
parent 2655edee5d
commit c3e1a5d4d6
1 changed files with 6 additions and 2 deletions

View File

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