mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
Fix a warning when there are multiple empty addresses.
This commit is contained in:
parent
7002f24586
commit
48d303cf8f
@ -326,10 +326,12 @@ sub process_xml_data ($$$$$) {
|
||||
}
|
||||
|
||||
# Save the first address as the main address
|
||||
$address = $address_list[0];
|
||||
$address =~ s/^\s+|\s+$//g ;
|
||||
shift (@address_list);
|
||||
}
|
||||
if (defined($address_list[0])) {
|
||||
$address = $address_list[0];
|
||||
$address =~ s/^\s+|\s+$//g ;
|
||||
shift (@address_list);
|
||||
}
|
||||
}
|
||||
|
||||
# A module with No-learn mode (modo = 0) creates its modules on database only when it is created
|
||||
my $new_agent = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user