From 493f9c5a1ad716bb94ad97bd1c104ef28d6314a5 Mon Sep 17 00:00:00 2001 From: Hugues Peccatte Date: Wed, 18 Dec 2013 21:29:34 +0100 Subject: Don't use function in for loop test. Signed-off-by: Hugues Peccatte --- setup/lib/ConfigGenerator.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setup') 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; } -- cgit v1.2.3