From 6a317029979e26036f353579caa7de9c90d5f904 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Joshua=20R=C3=BCsweg?= Date: Thu, 1 Aug 2019 11:37:46 +0200 Subject: [PATCH] Adjust variable name See #2977 --- .../install/files/lib/acp/page/SystemCheckPage.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/lib/acp/page/SystemCheckPage.class.php b/wcfsetup/install/files/lib/acp/page/SystemCheckPage.class.php index c3ecda56c4..2f8570b0e8 100644 --- a/wcfsetup/install/files/lib/acp/page/SystemCheckPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/SystemCheckPage.class.php @@ -220,7 +220,7 @@ class SystemCheckPage extends AbstractPage { } // validate foreign keys - $keyCount = 0; + $expectedForeignKeyCount = 0; $conditionBuilder = new PreparedStatementConditionBuilder(true, 'OR'); foreach ($this->foreignKeys as $table => $keys) { foreach ($keys as $column => $reference) { @@ -233,7 +233,7 @@ class SystemCheckPage extends AbstractPage { $conditionBuilder->add('('. $innerConditionBuilder .')', $innerConditionBuilder->getParameters()); - $keyCount++; + $expectedForeignKeyCount++; } } @@ -243,7 +243,7 @@ class SystemCheckPage extends AbstractPage { $statement = WCF::getDB()->prepareStatement($sql); $statement->execute($conditionBuilder->getParameters()); - $this->results['mysql']['foreignKeys'] = $statement->fetchSingleColumn() === $keyCount; + $this->results['mysql']['foreignKeys'] = $statement->fetchSingleColumn() === $expectedForeignKeyCount; if ($this->results['mysql']['result'] && $this->results['mysql']['innodb'] && $this->results['mysql']['foreignKeys']) { $this->results['status']['mysql'] = true; -- 2.20.1