aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Setup/AbstractDatabase.php
diff options
context:
space:
mode:
authorHamid Dehnavi <hamid.dev.pro@gmail.com>2023-07-07 13:43:21 +0330
committerHamid Dehnavi <hamid.dev.pro@gmail.com>2023-09-28 17:44:19 +0330
commitea06cf2f39c5c4e7f1ea20d075c01e3ba0cc6dd0 (patch)
tree91e5cd5b937877bcc6aafac1c7cff24e6f1589a2 /lib/private/Setup/AbstractDatabase.php
parent45cac164322d6ce4d10db07b9207b7079694e2a4 (diff)
downloadnextcloud-server-ea06cf2f39c5c4e7f1ea20d075c01e3ba0cc6dd0.tar.gz
nextcloud-server-ea06cf2f39c5c4e7f1ea20d075c01e3ba0cc6dd0.zip
Convert isset ternary to null coalescing operator
Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
Diffstat (limited to 'lib/private/Setup/AbstractDatabase.php')
-rw-r--r--lib/private/Setup/AbstractDatabase.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Setup/AbstractDatabase.php b/lib/private/Setup/AbstractDatabase.php
index 9ec4137cdef..79f23de8ef8 100644
--- a/lib/private/Setup/AbstractDatabase.php
+++ b/lib/private/Setup/AbstractDatabase.php
@@ -88,7 +88,7 @@ abstract class AbstractDatabase {
$dbName = $config['dbname'];
$dbHost = !empty($config['dbhost']) ? $config['dbhost'] : 'localhost';
$dbPort = !empty($config['dbport']) ? $config['dbport'] : '';
- $dbTablePrefix = isset($config['dbtableprefix']) ? $config['dbtableprefix'] : 'oc_';
+ $dbTablePrefix = $config['dbtableprefix'] ?? 'oc_';
$createUserConfig = $this->config->getValue("setup_create_db_user", true);
// accept `false` both as bool and string, since setting config values from env will result in a string