diff --git a/pandora_console/include/functions_api.php b/pandora_console/include/functions_api.php index a5af452698..df9942f923 100644 --- a/pandora_console/include/functions_api.php +++ b/pandora_console/include/functions_api.php @@ -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; }