aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2013-01-08 23:18:17 +0100
committerAndreas Fischer <bantu@phpbb.com>2013-01-08 23:18:17 +0100
commit24befac7b4879ae02a4416e47ca0deea93766b93 (patch)
tree35cbfe4368d680cdfe673a2c4399c81014c53ca0 /phpBB
parentc8dd12e5f4c064b9e1a470b33f91076ea590ad2f (diff)
downloadforums-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.php2
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});