fix comparison
authordemeritcowboy <demeritcowboy@hotmail.com>
Sun, 9 May 2021 17:52:12 +0000 (13:52 -0400)
committerdemeritcowboy <demeritcowboy@hotmail.com>
Sun, 9 May 2021 17:52:12 +0000 (13:52 -0400)
install/index.php

index 5ed5587e21f6ed3251971c88f539aade10848fac..a56b5289c6a50997df8bf14a4ebfa485da1b313e 100644 (file)
@@ -1070,7 +1070,7 @@ class InstallRequirements {
       }
       else {
         $versionDetails = mysqli_query($this->conn, 'SELECT version() as version')->fetch_assoc();
-        if (version_compare($versionDetails['version'], $min) == -1) {
+        if (version_compare($versionDetails['version'], $version) == -1) {
           $testDetails[2] .= "{$majorHas}.{$minorHas}.";
           $this->error($testDetails);
         }