aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2016-04-02 09:46:54 +0200
committerMarc Alexander <admin@m-a-styles.de>2016-04-02 09:46:54 +0200
commit5b61ac06cbb065d0e5d6c0c108ead96cea0c3333 (patch)
tree0eb30c021770286205be0489c3412a8613b8965d /phpBB/install
parent3f5a873e4cff0fd6f9ab2dd4fad1179009abed4b (diff)
downloadforums-5b61ac06cbb065d0e5d6c0c108ead96cea0c3333.tar
forums-5b61ac06cbb065d0e5d6c0c108ead96cea0c3333.tar.gz
forums-5b61ac06cbb065d0e5d6c0c108ead96cea0c3333.tar.bz2
forums-5b61ac06cbb065d0e5d6c0c108ead96cea0c3333.tar.xz
forums-5b61ac06cbb065d0e5d6c0c108ead96cea0c3333.zip
[ticket/14577] Do not calculate size of array in for loop
For loops that modify the size of the looped arrays were obviously not changed. PHPBB3-14577
Diffstat (limited to 'phpBB/install')
-rw-r--r--phpBB/install/install_convert.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/install/install_convert.php b/phpBB/install/install_convert.php
index a0f8a928de..10b05eb559 100644
--- a/phpBB/install/install_convert.php
+++ b/phpBB/install/install_convert.php
@@ -932,7 +932,7 @@ class install_convert extends module
$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))
{