Fixed that API couldn't create snmp module with module group id > 17.
This commit is contained in:
parent
00b17f5eda
commit
9abcfbf1b3
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue