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

Commit

Permalink
Encode booleans as string "true" or "false" when sending to Zoho.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rune Mønnike committed Jun 22, 2017
1 parent 63f5f5b commit fe560f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Transport/XmlDataTransportDecorator.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,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 fe560f9

Please sign in to comment.