1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-16 05:54:44 +01:00
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9324 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Henry Sudhof 2009-02-09 11:44:02 +00:00
parent 520e4a0219
commit 2966317c3f

View File

@ -58,7 +58,6 @@ class captcha
$code_len = strlen($code);
$captcha_bitmaps = $this->captcha_bitmaps();
$noise_bitmaps = $this->captcha_noise_bitmaps();
for ($i = 0; $i < $code_len; ++$i)
{
$characters[$i] = new char_cube3d($captcha_bitmaps, $code[$i]);
@ -114,6 +113,7 @@ class captcha
}
if ($config['captcha_gd_3d_noise'])
{
$noise_bitmaps = $this->captcha_noise_bitmaps();
for ($i = 0; $i < $code_len; ++$i)
{
$noise[$i] = new char_cube3d($noise_bitmaps, mt_rand(1, count($noise_bitmaps['data'])));