commit | 3419db1a5cc949e578dc5883d87a2ae45c375188 | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@bofh.bg> | Mon Mar 26 22:00:07 2012 +0300 |
committer | Andrey Andreev <narf@bofh.bg> | Mon Mar 26 22:00:07 2012 +0300 |
tree | c3baed94ee044d3a647a961f814dfb67b920201d | |
parent | a720961bcfa6b70b8d672b4861f8665763fc881a [diff] [blame] |
Further improve a for() loop
diff --git a/system/helpers/captcha_helper.php b/system/helpers/captcha_helper.php index 1e6ee3c..bdbc620 100644 --- a/system/helpers/captcha_helper.php +++ b/system/helpers/captcha_helper.php
@@ -138,7 +138,7 @@ $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);