diff --git a/src/maxmind.inc.php b/src/maxmind.inc.php index 631e485..0e4accc 100644 --- a/src/maxmind.inc.php +++ b/src/maxmind.inc.php @@ -266,6 +266,7 @@ function update_maxmind($customer, $module = 'default', $ip = false) { */ $distance_penalty = floor($response['distance'] / 100); + $distance_penalty = $distance_penalty > 50 ? 50 : $distance_penalty; myadmin_log('maxmind', 'info', 'Distance is '.$response['distance'].' or +'.$distance_penalty.' to riskScore (previously '.$response['riskScore'].')', __LINE__, __FILE__); $response['riskScore'] += $distance_penalty;