diff options
author | Andreas Fischer <bantu@phpbb.com> | 2013-01-08 23:18:17 +0100 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2013-01-08 23:18:17 +0100 |
commit | 24befac7b4879ae02a4416e47ca0deea93766b93 (patch) | |
tree | 35cbfe4368d680cdfe673a2c4399c81014c53ca0 /phpBB | |
parent | c8dd12e5f4c064b9e1a470b33f91076ea590ad2f (diff) | |
download | forums-24befac7b4879ae02a4416e47ca0deea93766b93.tar forums-24befac7b4879ae02a4416e47ca0deea93766b93.tar.gz forums-24befac7b4879ae02a4416e47ca0deea93766b93.tar.bz2 forums-24befac7b4879ae02a4416e47ca0deea93766b93.tar.xz forums-24befac7b4879ae02a4416e47ca0deea93766b93.zip |
[ticket/11301] Explicitly cast str offset to int to prevent E_NOTICE on 5.4.
PHPBB3-11301
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/includes/captcha/captcha_non_gd.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/captcha/captcha_non_gd.php b/phpBB/includes/captcha/captcha_non_gd.php index f82896f628..a823fa4226 100644 --- a/phpBB/includes/captcha/captcha_non_gd.php +++ b/phpBB/includes/captcha/captcha_non_gd.php @@ -119,7 +119,7 @@ class captcha $new_line = ''; $end = strlen($scanline) - ceil($width/2); - for ($i = floor($width/2); $i < $end; $i++) + for ($i = (int) floor($width/2); $i < $end; $i++) { $pixel = ord($scanline{$i}); |