diff options
Diffstat (limited to 'lib/private/Setup')
-rw-r--r-- | lib/private/Setup/Sqlite.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/private/Setup/Sqlite.php b/lib/private/Setup/Sqlite.php index f0682b807ec..0debb3464ac 100644 --- a/lib/private/Setup/Sqlite.php +++ b/lib/private/Setup/Sqlite.php @@ -44,8 +44,13 @@ class Sqlite extends AbstractDatabase { * in connection factory configuration is obtained from config.php. */ - $this->dbName = $config['dbname'] ?? ConnectionFactory::DEFAULT_DBNAME; - $this->tablePrefix = $config['dbtableprefix'] ?? ConnectionFactory::DEFAULT_DBTABLEPREFIX; + $this->dbName = empty($config['dbname']) + ? ConnectionFactory::DEFAULT_DBNAME + : $config['dbname']; + + $this->tablePrefix = empty($config['dbtableprefix']) + ? ConnectionFactory::DEFAULT_DBTABLEPREFIX + : $config['dbtableprefix']; if ($this->dbName !== ConnectionFactory::DEFAULT_DBNAME) { $this->config->setValue('dbname', $this->dbName); |