Skip to content

Commit

Permalink
Merge pull request z38#25 from sdespont/patch-1
Browse files Browse the repository at this point in the history
Fix StructuredPostalAddress regression
  • Loading branch information
z38 authored Mar 25, 2018
2 parents 62e5338 + b10d390 commit bf7da28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Z38/SwissPayment/StructuredPostalAddress.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ public function asDom(\DOMDocument $doc)
{
$root = $doc->createElement('PstlAdr');

if (!strlen($this->street)) {
if (strlen($this->street)) {
$root->appendChild($doc->createElement('StrtNm', $this->street));
}
if (!strlen($this->buildingNo)) {
if (strlen($this->buildingNo)) {
$root->appendChild($doc->createElement('BldgNb', $this->buildingNo));
}
$root->appendChild($doc->createElement('PstCd', $this->postCode));
Expand Down

0 comments on commit bf7da28

Please sign in to comment.