Skip to content

Commit b7f1e55

Browse files
fix: typos and refactor pg test to be similar to other dbs
Signed-off-by: Josh <[email protected]>
1 parent a6d63b0 commit b7f1e55

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/settings/lib/SetupChecks/SupportedDatabase.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ public function run(): SetupResult {
7777
$result->execute();
7878
$row = $result->fetch();
7979
$version = $row['server_version'];
80-
if (version_compare(strtolower($version), '12', '<') || version_compare(strtolower($version, '16', '>') {
80+
$versionlc = strtolower($version);
81+
if (version_compare($versionlc, '12', '<') || version_compare($versionlc, '16', '>')) {
8182
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));
8283
}
8384
} elseif ($databasePlatform instanceof OraclePlatform) {

0 commit comments

Comments
 (0)