Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/setup
diff options
context:
space:
mode:
authorHugues Peccatte <hugues.peccatte@gmail.com>2013-12-19 00:29:34 +0400
committerHugues Peccatte <hugues.peccatte@gmail.com>2013-12-19 00:29:34 +0400
commit493f9c5a1ad716bb94ad97bd1c104ef28d6314a5 (patch)
tree85dff7a215dd19147de3c4d041f07ce4e8685359 /setup
parent8381c6e0e843cde22d326bde57506084b7b59ed6 (diff)
Don't use function in for loop test.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
Diffstat (limited to 'setup')
-rw-r--r--setup/lib/ConfigGenerator.class.php2
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;
}