mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
Merge PR #1182 branch 'develop-olympus' into develop
# By Andreas Fischer # Via Andreas Fischer (1) and Oleg Pudeyev (1) * develop-olympus: [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.
This commit is contained in:
commit
0e9b7bcae9
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ class captcha
|
||||||
$new_line = '';
|
$new_line = '';
|
||||||
|
|
||||||
$end = strlen($scanline) - ceil($width/2);
|
$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});
|
$pixel = ord($scanline{$i});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue