diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 8e756e79d6..e62d526a34 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2013-02-07 Sergio Martin + + * extensions/plugin_registration.php: Fixed the PSPZ registration + when max retries are not defined on the ini file + FIX: 3603725 + 2013-02-07 Sergio Martin * godmode/agentes/agent_conf_gis.php diff --git a/pandora_console/extensions/plugin_registration.php b/pandora_console/extensions/plugin_registration.php index e951b0febe..6c5c63ef91 100644 --- a/pandora_console/extensions/plugin_registration.php +++ b/pandora_console/extensions/plugin_registration.php @@ -135,12 +135,12 @@ function pluginreg_extension_main () { else { $macros = json_encode($macros); } - + $values = array( 'name' => io_safe_input ($ini_array["plugin_definition"]["name"]), 'description' => io_safe_input ($ini_array["plugin_definition"]["description"]), 'max_timeout' => $ini_array["plugin_definition"]["timeout"], - 'max_retries' => $ini_array["plugin_definition"]["retries"], + 'max_retries' => isset($ini_array["plugin_definition"]["retries"]) ? $ini_array["plugin_definition"]["retries"] : 0, 'execute' => io_safe_input ($exec_path), 'parameters' => io_safe_input ($ini_array["plugin_definition"]["execution_postcommand"]), 'macros' => $macros,