Skip to content

Commit

Permalink
Fix retrieving MySQL version for checking as part of install requirem…
Browse files Browse the repository at this point in the history
…ents
  • Loading branch information
seamuslee001 committed Jun 12, 2020
1 parent d4b99fb commit 6bccb57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Civi/Install/Requirements.php
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,8 @@ public function checkMysqlVersion(array $db_config) {
return $results;
}

if (version_compare($info, $min) == -1) {
$versionDetails = mysqli_query($con, 'SELECT version() as version');
if (version_compare($versionDetails->version, $min) == -1) {
$results['severity'] = $this::REQUIREMENT_ERROR;
$results['details'] = "MySQL version is {$info}; minimum required is {$min}";
return $results;
Expand Down

0 comments on commit 6bccb57

Please sign in to comment.