Skip to content

Commit

Permalink
bool type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aivanouski committed Aug 17, 2016
1 parent 69bf461 commit 6393e3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Binary file added .gitignore
Binary file not shown.
4 changes: 3 additions & 1 deletion src/MarketplaceWebServiceOrders/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,9 @@ private function __toQueryParameterArray($prefix, $fieldType, $fieldValue, $fiel
// Primitive
if ($fieldValue!==null && $fieldValue!=="") {
if ($fieldType=='bool') {
$fieldValue = ($fieldValue)?'true':'false';
if (is_bool($fieldValue)) {
$fieldValue = ($fieldValue) ? 'true' : 'false';
}
}
$arr[rtrim($prefix, '.')] = $fieldValue;
}
Expand Down

0 comments on commit 6393e3d

Please sign in to comment.