From 02deff352796d069a5aa8b38569b8f44ff607244 Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Thu, 7 Feb 2013 17:42:14 +0000 Subject: [PATCH] 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 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7611 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 6 ++++++ pandora_console/extensions/plugin_registration.php | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) 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,