mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
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:
commit
200bcc3b49
@ -326,10 +326,12 @@ sub process_xml_data ($$$$$) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Save the first address as the main address
|
# Save the first address as the main address
|
||||||
$address = $address_list[0];
|
if (defined($address_list[0])) {
|
||||||
$address =~ s/^\s+|\s+$//g ;
|
$address = $address_list[0];
|
||||||
shift (@address_list);
|
$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
|
# A module with No-learn mode (modo = 0) creates its modules on database only when it is created
|
||||||
my $new_agent = 0;
|
my $new_agent = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user