Fix validate

This commit is contained in:
MatteoPistorello 2024-09-18 09:14:16 +02:00
parent 3e39bd8211
commit f9efe990d1
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ class Validate
$info = explode(PHP_EOL, $address);
$fields['indirizzo'] = $info[0];
$info = explode(' ', $info[1]);
$info = explode(' ', $info[1] ?: '');
$fields['cap'] = $info[0];
$fields['provincia'] = end($info);