diff --git a/pandora_server/ChangeLog b/pandora_server/ChangeLog index b2d02a20ab..1b6e534315 100644 --- a/pandora_server/ChangeLog +++ b/pandora_server/ChangeLog @@ -1,3 +1,8 @@ +2013-02-28 Sancho Lerena + + * lib/PandoraFMS/PluginServer.pm: Removed several "Use of uninitialized i + value in string" errors. + 2013-02-28 Ramon Novoa * bin/pandora_server: Undid the previous commit since forking after diff --git a/pandora_server/lib/PandoraFMS/PluginServer.pm b/pandora_server/lib/PandoraFMS/PluginServer.pm index 7a8827999f..587ea45b03 100644 --- a/pandora_server/lib/PandoraFMS/PluginServer.pm +++ b/pandora_server/lib/PandoraFMS/PluginServer.pm @@ -152,9 +152,17 @@ sub data_consumer ($$) { # Build command to execute my $command = $plugin->{'execute'}; - + + if (!defined($plugin->{'parameters'})){ + $plugin->{'parameters'} = ""; + } + my $parameters = $plugin->{'parameters'}; - + + if (!defined($module->{'macros'})){ + $module->{'macros'} = ""; + } + # Macros eval { if ($module->{'macros'} ne '') {