mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-20 04:14:58 +02:00
2011-08-16 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/DataServer.pm: When reading module tags use get_tag_value to avoid trouble with empty tags. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4737 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
983dbdfa63
commit
e60d251f61
@ -1,3 +1,8 @@
|
|||||||
|
2011-08-16 Ramon Novoa <rnovoa@artica.es>
|
||||||
|
|
||||||
|
* lib/PandoraFMS/DataServer.pm: When reading module tags use
|
||||||
|
get_tag_value to avoid trouble with empty tags.
|
||||||
|
|
||||||
2011-08-13 Sancho Lerena <slerena@artica.es>
|
2011-08-13 Sancho Lerena <slerena@artica.es>
|
||||||
|
|
||||||
* lib/Core.pm: get_agent_from_addr() function is now in Core because
|
* lib/Core.pm: get_agent_from_addr() function is now in Core because
|
||||||
|
@ -458,9 +458,9 @@ sub process_module_data ($$$$$$$$$) {
|
|||||||
# Read tags
|
# Read tags
|
||||||
while (my ($tag, $value) = each (%{$data})) {
|
while (my ($tag, $value) = each (%{$data})) {
|
||||||
if (defined ($tags->{$tag})) {
|
if (defined ($tags->{$tag})) {
|
||||||
$module_conf->{$tag} = $value->[0];
|
$module_conf->{$tag} = get_tag_value ($data, $tag, '');
|
||||||
} else {
|
} else {
|
||||||
$module_conf->{'extended_info'} .= "$tag: " . $value->[0] . '<br/>';
|
$module_conf->{'extended_info'} .= "$tag: " . get_tag_value ($data, $tag, '') . '<br/>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user