aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2013-01-09 01:25:44 -0500
committerOleg Pudeyev <oleg@bsdpower.com>2013-01-09 01:25:44 -0500
commit8b4e6619049e5bb36bd28af218f9b60834b10b99 (patch)
tree92b565d1790ef32e2ffbf880a4a6f127b6189e1f
parentc8dd12e5f4c064b9e1a470b33f91076ea590ad2f (diff)
parent41a07eedeb13349305977bb8882f0bd6429480e3 (diff)
downloadforums-8b4e6619049e5bb36bd28af218f9b60834b10b99.tar
forums-8b4e6619049e5bb36bd28af218f9b60834b10b99.tar.gz
forums-8b4e6619049e5bb36bd28af218f9b60834b10b99.tar.bz2
forums-8b4e6619049e5bb36bd28af218f9b60834b10b99.tar.xz
forums-8b4e6619049e5bb36bd28af218f9b60834b10b99.zip
Merge PR #1182 branch 'bantu/ticket/11301' into develop-olympus
# By Andreas Fischer # Via Andreas Fischer * bantu/ticket/11301: [ticket/11301] Guidelines: Add spaces in front and after the / operator. [ticket/11301] Explicitly cast str offset to int to prevent E_NOTICE on 5.4.
-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..2adf909b96 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});