mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Fixed get_plugins API that had returned values in wrong order if updated from ver 4.x.
This commit is contained in:
parent
8a0619bb46
commit
75f4884768
@ -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';
|
||||
|
Loading…
x
Reference in New Issue
Block a user