Fixed that API couldn't create snmp module with module group id > 17.

This commit is contained in:
Hirofumi Kosaka 2016-06-30 17:39:00 +09:00
parent 00b17f5eda
commit 9abcfbf1b3
1 changed files with 1 additions and 1 deletions

View File

@ -2641,7 +2641,7 @@ function api_set_create_snmp_module($id, $thrash1, $other, $thrash3) {
return;
}
if ($other['data'][2] < 15 or $other['data'][3] > 17) {
if ($other['data'][2] < 15 or $other['data'][2] > 17) {
returnError('error_create_snmp_module', __('Error in creation SNMP module. Invalid id_module_type for a SNMP module.'));
return;
}