Fix SystemCheckPage with MySQL 5
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 13 Jul 2022 10:09:59 +0000 (12:09 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 13 Jul 2022 10:09:59 +0000 (12:09 +0200)
The array key for MySQL's 5.y.z branch was removed in
9870f6ffe5a52130e858777cec48f0576a625a4a, but it still was accessed.

wcfsetup/install/files/lib/acp/page/SystemCheckPage.class.php

index ab8af1f11f19006ec522876d7522dc7acee83786..b593f22a8c59b341c49d6dd63dd105e7421f9e63 100644 (file)
@@ -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