From: Joshua Rüsweg Date: Thu, 1 Aug 2019 09:37:46 +0000 (+0200) Subject: Adjust variable name X-Git-Tag: 5.2.0_Alpha_4~19^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6a317029979e26036f353579caa7de9c90d5f904;p=GitHub%2FWoltLab%2FWCF.git Adjust variable name See #2977 --- 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;