mirror of
https://github.com/nextcloud/server.git
synced 2026-04-27 01:00:20 -04:00
fix(setupCheck): Fix checking database type
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
This commit is contained in:
parent
50f287402a
commit
3f976c2548
1 changed files with 2 additions and 2 deletions
|
|
@ -34,8 +34,8 @@ class MysqlRowFormat implements ISetupCheck {
|
|||
}
|
||||
|
||||
public function run(): SetupResult {
|
||||
if (!$this->connection->getDatabaseProvider() === IDBConnection::PLATFORM_MYSQL
|
||||
&& !$this->connection->getDatabaseProvider() === IDBConnection::PLATFORM_MARIADB) {
|
||||
$provider = $this->connection->getDatabaseProvider();
|
||||
if (!in_array($provider, [IDBConnection::PLATFORM_MYSQL, IDBConnection::PLATFORM_MARIADB], true)) {
|
||||
return SetupResult::success($this->l10n->t('You are not using MySQL'));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue