Skip to content

Commit 6df6b58

Browse files
authored
Merge pull request #55797 from nextcloud/fixDbType
fix(setupCheck): Fix checking database type
2 parents 6266000 + 3f976c2 commit 6df6b58

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/settings/lib/SetupChecks/MysqlRowFormat.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ public function getCategory(): string {
3434
}
3535

3636
public function run(): SetupResult {
37-
if (!$this->connection->getDatabaseProvider() === IDBConnection::PLATFORM_MYSQL
38-
&& !$this->connection->getDatabaseProvider() === IDBConnection::PLATFORM_MARIADB) {
37+
$provider = $this->connection->getDatabaseProvider();
38+
if (!in_array($provider, [IDBConnection::PLATFORM_MYSQL, IDBConnection::PLATFORM_MARIADB], true)) {
3939
return SetupResult::success($this->l10n->t('You are not using MySQL'));
4040
}
4141

0 commit comments

Comments
 (0)