1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-27 21:45:22 +02:00

[ticket/11301] Explicitly cast str offset to int to prevent E_NOTICE on 5.4.

PHPBB3-11301
This commit is contained in:
Andreas Fischer
2013-01-08 23:18:17 +01:00
parent c8dd12e5f4
commit 24befac7b4

View File

@ -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});