diff options
author | Josh Richards <josh.t.richards@gmail.com> | 2024-05-10 09:12:43 -0400 |
---|---|---|
committer | Josh <josh.t.richards@gmail.com> | 2024-05-10 16:41:29 -0400 |
commit | 29157149c854bbbb3e0a1156ce71ea69e18313dc (patch) | |
tree | cc2abb9b1f0b210780435f8ad91025e146a9f0fe /apps | |
parent | 7d7ae250d2c6430da3294fd3a9da4c514933638a (diff) | |
download | nextcloud-server-29157149c854bbbb3e0a1156ce71ea69e18313dc.tar.gz nextcloud-server-29157149c854bbbb3e0a1156ce71ea69e18313dc.zip |
fix: oops vendor string embedded in version
Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/settings/lib/SetupChecks/SupportedDatabase.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/settings/lib/SetupChecks/SupportedDatabase.php b/apps/settings/lib/SetupChecks/SupportedDatabase.php index 3b72d3f6857..f829f7f268e 100644 --- a/apps/settings/lib/SetupChecks/SupportedDatabase.php +++ b/apps/settings/lib/SetupChecks/SupportedDatabase.php @@ -64,13 +64,13 @@ class SupportedDatabase implements ISetupCheck { $versionlc = strtolower($version); // we only care about X.Y not X.Y.Z differences [$major, $minor, ] = explode('.', $versionlc); - $versionlc = $major . '.' . $minor; + $versionConcern = $major . '.' . $minor; if (str_contains($versionlc, 'mariadb')) { - if (version_compare($versionlc, '10.3', '<') || version_compare($versionlc, '10.11', '>')) { + if (version_compare($versionConcern, '10.3', '<') || version_compare($versionConcern, '10.11', '>')) { return SetupResult::warning($this->l10n->t('MariaDB version "%s" detected. MariaDB >=10.3 and <=10.11 is suggested for best performance, stability and functionality with this version of Nextcloud.', $version)); } } else { - if (version_compare($versionlc, '8.0', '<') || version_compare($versionlc, '8.3', '>')) { + if (version_compare($versionConcern, '8.0', '<') || version_compare($versionConcern, '8.3', '>')) { return SetupResult::warning($this->l10n->t('MySQL version "%s" detected. MySQL >=8.0 and <=8.3 is suggested for best performance, stability and functionality with this version of Nextcloud.', $version)); } } @@ -82,8 +82,8 @@ class SupportedDatabase implements ISetupCheck { $versionlc = strtolower($version); // we only care about X not X.Y or X.Y.Z differences [$major, ] = explode('.', $versionlc); - $versionlc = $major; - if (version_compare($versionlc, '12', '<') || version_compare($versionlc, '16', '>')) { + $versionConcern = $major; + if (version_compare($versionConcern, '12', '<') || version_compare($versionConcern, '16', '>')) { return SetupResult::warning($this->l10n->t('PostgreSQL version "%s" detected. PostgreSQL >=12 and <=16 is suggested for best performance, stability and functionality with this version of Nextcloud.', $version)); } } elseif ($databasePlatform instanceof OraclePlatform) { |