Fix validate
This commit is contained in:
parent
3e39bd8211
commit
f9efe990d1
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue