Skip to content

Commit

Permalink
Fix taxpayerValidity verification
Browse files Browse the repository at this point in the history
  • Loading branch information
pzs committed Jul 10, 2020
1 parent e555bae commit 0f3a0ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NavOnlineInvoice/Reporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ public function queryTaxpayer($taxNumber) {
}

// taxpayerValidity értéke lehet false is, ha az adószám létezik, de nem érvényes
if (empty($responseXml->taxpayerValidity) or $responseXml->taxpayerValidity === "false") {
if (empty($responseXml->taxpayerValidity) or (string)($responseXml->taxpayerValidity) === "false") {
return false;
}

Expand Down

0 comments on commit 0f3a0ac

Please sign in to comment.