From: Tim Düsterhus Date: Wed, 13 Jul 2022 10:09:59 +0000 (+0200) Subject: Fix SystemCheckPage with MySQL 5 X-Git-Tag: 6.0.0_Alpha_1~1116 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d8d8d2d15dc47820f3b4f0b43c913574813404f4;p=GitHub%2FWoltLab%2FWCF.git Fix SystemCheckPage with MySQL 5 The array key for MySQL's 5.y.z branch was removed in 9870f6ffe5a52130e858777cec48f0576a625a4a, but it still was accessed. --- diff --git a/wcfsetup/install/files/lib/acp/page/SystemCheckPage.class.php b/wcfsetup/install/files/lib/acp/page/SystemCheckPage.class.php index ab8af1f11f..b593f22a8c 100644 --- a/wcfsetup/install/files/lib/acp/page/SystemCheckPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/SystemCheckPage.class.php @@ -235,17 +235,10 @@ class SystemCheckPage extends AbstractPage $this->mysqlVersions['mariadb']['10'] ) >= 0); } else { - if ($compareSQLVersion[0] === '5') { - $this->results['mysql']['result'] = (\version_compare( - $compareSQLVersion, - $this->mysqlVersions['mysql']['5'] - ) >= 0); - } else { - $this->results['mysql']['result'] = (\version_compare( - $compareSQLVersion, - $this->mysqlVersions['mysql']['8'] - ) >= 0); - } + $this->results['mysql']['result'] = (\version_compare( + $compareSQLVersion, + $this->mysqlVersions['mysql']['8'] + ) >= 0); } // check innodb support