From 4d6e768844f1bd169dcc91bc89a9635248c940d5 Mon Sep 17 00:00:00 2001 From: valentina Date: Thu, 7 Nov 2024 09:45:20 +0100 Subject: [PATCH] fix: creazione banca in importazione fattura elettronica --- modules/banche/src/IBAN.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/banche/src/IBAN.php b/modules/banche/src/IBAN.php index 601812ab9..2fe44a6e5 100644 --- a/modules/banche/src/IBAN.php +++ b/modules/banche/src/IBAN.php @@ -392,8 +392,7 @@ class IBAN $this->nation = $nation = substr($iban, 0, 2); $info = self::$countries[$nation]; - $structure = $info['structure']; - $structure = str_replace(' ', '', $structure); + $structure = $info['structure'] ? str_replace(' ', '', $info['structure']) : ''; $regex = $nation; $keys = array_keys(self::$parsers);