From 0f3a0acf390ef7f1a9faf34a209d1a81facbf8f9 Mon Sep 17 00:00:00 2001 From: pzs Date: Fri, 10 Jul 2020 15:49:32 +0200 Subject: [PATCH] Fix taxpayerValidity verification --- src/NavOnlineInvoice/Reporter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NavOnlineInvoice/Reporter.php b/src/NavOnlineInvoice/Reporter.php index a7e2d34..fde6652 100644 --- a/src/NavOnlineInvoice/Reporter.php +++ b/src/NavOnlineInvoice/Reporter.php @@ -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; }