Skip to content

Commit

Permalink
Merge pull request #36 from productflowbv/hotfix/data-validation-fixes
Browse files Browse the repository at this point in the history
Fixed data handling in some endpoints
  • Loading branch information
casperbakker authored Apr 6, 2022
2 parents 384bff4 + 4511104 commit 63d0151
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function getCustomerByCustomerid($customerid)
if (is_array($result['data']) && count($result['data']) == 1) {
$result['data'] = $result['data'][0];
} else {
$result = null;
$result['data'] = null;
}
return $result;
}
Expand Down Expand Up @@ -133,7 +133,7 @@ public function getProductByProductcode($productcode)
if (is_array($result['data']) && count($result['data']) == 1) {
$result['data'] = $result['data'][0];
} else {
$result = null;
$result['data'] = null;
}

return $result;
Expand Down

0 comments on commit 63d0151

Please sign in to comment.