aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/captcha/captcha_gd.php
diff options
context:
space:
mode:
authorHenry Sudhof <kellanved@phpbb.com>2009-02-09 11:44:02 +0000
committerHenry Sudhof <kellanved@phpbb.com>2009-02-09 11:44:02 +0000
commit2966317c3fb1e055c93f5e378b2615e1af41f4cc (patch)
treee870b22d2236bca40993a772554104820ca76cde /phpBB/includes/captcha/captcha_gd.php
parent520e4a02194c1b91b13dcb70f98b5f99fe641da7 (diff)
downloadforums-2966317c3fb1e055c93f5e378b2615e1af41f4cc.tar
forums-2966317c3fb1e055c93f5e378b2615e1af41f4cc.tar.gz
forums-2966317c3fb1e055c93f5e378b2615e1af41f4cc.tar.bz2
forums-2966317c3fb1e055c93f5e378b2615e1af41f4cc.tar.xz
forums-2966317c3fb1e055c93f5e378b2615e1af41f4cc.zip
erm
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9324 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/captcha/captcha_gd.php')
-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 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'])));