|
|
@@ -166,7 +166,7 @@ Class VAT {
|
|
|
$this->dom->loadHTML(mb_convert_encoding($html, 'HTML-ENTITIES', 'UTF-8'));
|
|
|
$this->message = array_map("trim", array_values(array_diff(explode("|", $this->dom->getElementById("caption2_b-3")->textContent), [''])));
|
|
|
if (!$this->message) throw new Exception("Błąd danych ze strony Ministerstwa Finansów");
|
|
|
- if (in_array($this->message[0], $this->messages)) return $this->messages[$this->message[0]]['active'];
|
|
|
+ if (isset($this->messages[$this->message[0]])) return $this->messages[$this->message[0]]['active'];
|
|
|
else throw new Exception("Nieznany rezultat");
|
|
|
}
|
|
|
|