diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-03-26 21:00:07 +0200 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-03-26 21:00:07 +0200 |
commit | 3419db1a5cc949e578dc5883d87a2ae45c375188 (patch) | |
tree | c3baed94ee044d3a647a961f814dfb67b920201d /system/helpers/captcha_helper.php | |
parent | a720961bcfa6b70b8d672b4861f8665763fc881a (diff) |
Further improve a for() loop
Diffstat (limited to 'system/helpers/captcha_helper.php')
-rw-r--r-- | system/helpers/captcha_helper.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/helpers/captcha_helper.php b/system/helpers/captcha_helper.php index 1e6ee3c07..bdbc62097 100644 --- a/system/helpers/captcha_helper.php +++ b/system/helpers/captcha_helper.php @@ -138,7 +138,7 @@ if ( ! function_exists('create_captcha')) $circles = 20; $points = 32; - for ($i = 0, $cp = $circles * $points; $i < $cp - 1; $i++) + for ($i = 0, $cp = ($circles * $points) - 1; $i < $cp; $i++) { $theta += $thetac; $rad = $radius * ($i / $points); |