From b7f1e554487f7c4d218cbbe4f777fe79c9c7a62f Mon Sep 17 00:00:00 2001 From: Josh Date: Thu, 9 May 2024 17:20:59 -0400 Subject: [PATCH] fix: typos and refactor pg test to be similar to other dbs Signed-off-by: Josh --- apps/settings/lib/SetupChecks/SupportedDatabase.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/settings/lib/SetupChecks/SupportedDatabase.php b/apps/settings/lib/SetupChecks/SupportedDatabase.php index d073f4f39dc3e..e6e95e59243ae 100644 --- a/apps/settings/lib/SetupChecks/SupportedDatabase.php +++ b/apps/settings/lib/SetupChecks/SupportedDatabase.php @@ -77,7 +77,8 @@ public function run(): SetupResult { $result->execute(); $row = $result->fetch(); $version = $row['server_version']; - if (version_compare(strtolower($version), '12', '<') || version_compare(strtolower($version, '16', '>') { + $versionlc = strtolower($version); + if (version_compare($versionlc, '12', '<') || version_compare($versionlc, '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) {