Commit 4ec2b924 authored by Guillaume Wauquier's avatar Guillaume Wauquier
Browse files

Correction à vérifier : nom du variable incorrect

parent 656075f9
......@@ -74,7 +74,7 @@ $app->GET('/api/cash/search/', function($request, $response, $args) {
$cashRegApiResp = APICaller::run($ptApp, 'cashRegister', 'get',
$cashRegisterId);
if ($cashRegApiResp->getStatus() != APIResult::STATUS_CALL_OK) {
return $response->withApiResult($cashRegResp);
return $response->withApiResult($cashRegApiResp);
}
$cashRegister = $cashRegApiResp->getContent();
if ($cashRegister === null) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment