diff options
| author | Tristan Darricau <tristan.darricau@sensiolabs.com> | 2016-04-02 12:07:03 +0200 |
|---|---|---|
| committer | Tristan Darricau <tristan.darricau@sensiolabs.com> | 2016-04-02 12:07:03 +0200 |
| commit | d603d66eaa818241a6c6a5644cf10482ad441b72 (patch) | |
| tree | 9702d9643d1961938fed3b4785cbc450e79848bf /phpBB/install | |
| parent | f9b60863025b02f49261515f952e99dd23f25bb6 (diff) | |
| parent | 2653b98e09fad62c6e9af83a7f6938bc43833870 (diff) | |
| download | forums-d603d66eaa818241a6c6a5644cf10482ad441b72.tar forums-d603d66eaa818241a6c6a5644cf10482ad441b72.tar.gz forums-d603d66eaa818241a6c6a5644cf10482ad441b72.tar.bz2 forums-d603d66eaa818241a6c6a5644cf10482ad441b72.tar.xz forums-d603d66eaa818241a6c6a5644cf10482ad441b72.zip | |
Merge pull request #4273 from marc1706/ticket/14577-3.2.x
[ticket/14577] Do not calculate size of array in for loop
* marc1706/ticket/14577-3.2.x:
[ticket/14577] Do not calculate size of array in for loop
Diffstat (limited to 'phpBB/install')
| -rw-r--r-- | phpBB/install/convert/convertor.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/install/convert/convertor.php b/phpBB/install/convert/convertor.php index 769f8bb637..5a3799a7a1 100644 --- a/phpBB/install/convert/convertor.php +++ b/phpBB/install/convert/convertor.php @@ -373,7 +373,7 @@ class convertor $val = array($val); } - for ($j = 0; $j < sizeof($val); ++$j) + for ($j = 0, $size = sizeof($val); $j < $size; ++$j) { if (preg_match('/LEFT JOIN ([a-z0-9_]+) AS ([a-z0-9_]+)/i', $val[$j], $m)) { |
