aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/captcha/captcha_gd.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/captcha/captcha_gd.php b/phpBB/includes/captcha/captcha_gd.php
index f6eb5c9c50..2615e19d37 100644
--- a/phpBB/includes/captcha/captcha_gd.php
+++ b/phpBB/includes/captcha/captcha_gd.php
@@ -3438,7 +3438,7 @@ function vector_distance(&$char, $x, $y, $range = 0.1)
break;
}
- $distance = min($distance, $d);
+ $distance = min($distance, abs($d));
}
return $distance;
}