diff options
Diffstat (limited to 'setup')
-rw-r--r-- | setup/lib/ConfigGenerator.class.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/setup/lib/ConfigGenerator.class.php b/setup/lib/ConfigGenerator.class.php index 437ef7b126..5497eff4ab 100644 --- a/setup/lib/ConfigGenerator.class.php +++ b/setup/lib/ConfigGenerator.class.php @@ -121,7 +121,7 @@ class ConfigGenerator */ private static function _isZeroBasedArray(array $array) { - for ($i = 0; $i < count($array); $i++) { + for ($i = 0, $nb = count($array); $i < $nb; $i++) { if (! isset($array[$i])) { return false; } |