diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2018-09-23 18:25:48 +0200 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2018-09-23 18:25:48 +0200 |
commit | 9d7e51fd56e9ac1283fb84e2a9af966d1d1bb212 (patch) | |
tree | 5c96f95938354fa962fe71bacb553f871858da6c /lib/private/Setup | |
parent | 0ee191bf44a4204dae0dd5ee641ccbf6720e1341 (diff) | |
download | nextcloud-server-9d7e51fd56e9ac1283fb84e2a9af966d1d1bb212.tar.gz nextcloud-server-9d7e51fd56e9ac1283fb84e2a9af966d1d1bb212.zip |
Use empty instead ?? because dbname is '' sometimes
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
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); |