From 75f4884768c55f8fc3e54c5324282e24307bb23a Mon Sep 17 00:00:00 2001 From: Hirofumi Kosaka Date: Thu, 18 Feb 2016 16:55:16 +0900 Subject: [PATCH] Fixed get_plugins API that had returned values in wrong order if updated from ver 4.x. --- pandora_console/include/functions_api.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pandora_console/include/functions_api.php b/pandora_console/include/functions_api.php index 3975fc63fc..696cd3a049 100644 --- a/pandora_console/include/functions_api.php +++ b/pandora_console/include/functions_api.php @@ -3666,8 +3666,14 @@ function api_get_plugins($thrash1, $thrash2, $other, $thrash3) { $separator = $other['data'][0]; $filter = false; + $field_list = array( 'id', 'name', 'description', + 'max_timeout', 'max_retries', + 'execute', 'net_dst_opt', + 'net_port_opt', 'user_opt', + 'pass_opt', 'plugin_type', + 'macros', 'parameters'); - $plugins = @db_get_all_rows_filter ('tplugin', $filter); + $plugins = @db_get_all_rows_filter ('tplugin', $filter, $field_list); if ($plugins !== false) { $data['type'] = 'array';