Skip to content
This repository has been archived by the owner on Jan 6, 2021. It is now read-only.

Commit

Permalink
Merge pull request #23 from SPOORT/encode-booleans
Browse files Browse the repository at this point in the history
Encode booleans as string "true" or "false" when sending to Zoho.
  • Loading branch information
runemoennike committed Jun 22, 2017
2 parents f7d3f46 + fe560f9 commit 6906702
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Transport/XmlDataTransportDecorator.php
Expand Up @@ -82,6 +82,8 @@ private function encodeRecords(array $records)
} else {
$value = $value->format('Y-m-d H:i:s');
}
} elseif (is_bool($value)) {
$value = $value ? 'true' : 'false';
}
$keyValue = $row->addChild('FL');
$keyValue[0] = $value;
Expand Down

0 comments on commit 6906702

Please sign in to comment.