From 2966317c3fb1e055c93f5e378b2615e1af41f4cc Mon Sep 17 00:00:00 2001 From: Henry Sudhof Date: Mon, 9 Feb 2009 11:44:02 +0000 Subject: erm git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9324 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/captcha/captcha_gd.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'phpBB/includes/captcha/captcha_gd.php') diff --git a/phpBB/includes/captcha/captcha_gd.php b/phpBB/includes/captcha/captcha_gd.php index 4a8dd893a7..96bce8e654 100644 --- a/phpBB/includes/captcha/captcha_gd.php +++ b/phpBB/includes/captcha/captcha_gd.php @@ -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']))); -- cgit v1.2.1