Merge branch 'error-en-dataserver' into 'develop'

Fix a warning when there are multiple empty addresses.

See merge request !653
This commit is contained in:
vgilc 2017-07-10 12:52:59 +02:00
commit 200bcc3b49
1 changed files with 6 additions and 4 deletions

View File

@ -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;